|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ObjectAccessor.h>
Public Types | |
| typedef UNORDERED_MAP< uint64, T * > | MapType |
Static Public Member Functions | |
| static T * | Find (uint64 guid) |
| static MapType & | GetContainer () |
| static SF_SHARED_MUTEX * | GetLock () |
| static void | Insert (T *o) |
| static void | Remove (T *o) |
Private Member Functions | |
| HashMapHolder () | |
Static Private Attributes | |
| static SF_SHARED_MUTEX | i_lock |
| static MapType | m_objectMap |
Definition at line 33 of file ObjectAccessor.h.
| typedef UNORDERED_MAP<uint64, T*> HashMapHolder< T >::MapType |
Definition at line 36 of file ObjectAccessor.h.
|
inlineprivate |
Definition at line 51 of file ObjectAccessor.h.
|
static |
Definition at line 45 of file ObjectAccessor.cpp.
References GetContainer(), GetLock(), and SF_SHARED_GUARD.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), OPvPCapturePoint::DelCreature(), OPvPCapturePoint::DelObject(), OPvPCapturePointNA::GetAliveGuardsCount(), ObjectAccessor::GetObjectInOrOutOfWorld(), ObjectAccessor::GetObjectInWorld(), ObjectAccessor::GetObjectInWorld(), ObjectAccessor::GetObjectInWorld(), OPvPCapturePointZM_GraveYard::HandleGossipOption(), WorldSession::HandleRequestPartyMemberStatsOpcode(), Player::LoadFromDB(), SmartScript::ResetBaseObject(), BattlegroundEY::RespawnFlagAfterDrop(), Map::ScriptsProcess(), GameEventMgr::UpdateEventNPCFlags(), and Player::UpdateForQuestWorldObjects().
|
static |
Definition at line 53 of file ObjectAccessor.cpp.
References m_objectMap.
Referenced by Find(), ObjectAccessor::GetCreatures(), ObjectAccessor::GetGameObjects(), ObjectAccessor::GetPlayers(), Insert(), and Remove().
|
static |
Definition at line 60 of file ObjectAccessor.cpp.
References i_lock, and SF_SHARED_MUTEX.
Referenced by Find(), ObjectAccessor::FindPlayerByName(), gm_commandscript::HandleGMListIngameCommand(), reset_commandscript::HandleResetAllCommand(), WorldSession::HandleWhoOpcode(), Insert(), debug_commandscript::RefreshLfgLockInfoForOnlinePlayers(), Remove(), GameEventMgr::RunSmartAIScripts(), and ObjectAccessor::SaveAllPlayers().
|
static |
Definition at line 31 of file ObjectAccessor.cpp.
References GetContainer(), GetLock(), and SF_UNIQUE_GUARD.
Referenced by ObjectAccessor::AddObject().
|
static |
Definition at line 38 of file ObjectAccessor.cpp.
References GetContainer(), GetLock(), and SF_UNIQUE_GUARD.
Referenced by ObjectAccessor::RemoveObject().
|
staticprivate |
Definition at line 52 of file ObjectAccessor.h.
Referenced by GetLock().
|
staticprivate |
Definition at line 53 of file ObjectAccessor.h.
Referenced by GetContainer().