AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ObjectAccessor.h File Reference
#include "Define.h"
#include "GridDefines.h"
#include "Object.h"
#include "UpdateData.h"
#include <mutex>
#include <set>
#include <shared_mutex>
#include <unordered_map>

Go to the source code of this file.

Classes

class  HashMapHolder< T >
 

Namespaces

namespace  ObjectAccessor
 

Functions

WorldObjectObjectAccessor::GetWorldObject (WorldObject const &, ObjectGuid const guid)
 
ObjectObjectAccessor::GetObjectByTypeMask (WorldObject const &, ObjectGuid const guid, uint32 typemask)
 
CorpseObjectAccessor::GetCorpse (WorldObject const &u, ObjectGuid const guid)
 
GameObjectObjectAccessor::GetGameObject (WorldObject const &u, ObjectGuid const guid)
 
TransportObjectAccessor::GetTransport (WorldObject const &u, ObjectGuid const guid)
 
DynamicObjectObjectAccessor::GetDynamicObject (WorldObject const &u, ObjectGuid const guid)
 
UnitObjectAccessor::GetUnit (WorldObject const &, ObjectGuid const guid)
 
CreatureObjectAccessor::GetCreature (WorldObject const &u, ObjectGuid const guid)
 
PetObjectAccessor::GetPet (WorldObject const &, ObjectGuid const guid)
 
PlayerObjectAccessor::GetPlayer (Map const *, ObjectGuid const guid)
 
PlayerObjectAccessor::GetPlayer (WorldObject const &, ObjectGuid const guid)
 
CreatureObjectAccessor::GetCreatureOrPetOrVehicle (WorldObject const &, ObjectGuid const)
 
PlayerObjectAccessor::FindPlayer (ObjectGuid const guid)
 
PlayerObjectAccessor::FindPlayerByLowGUID (ObjectGuid::LowType lowguid)
 
PlayerObjectAccessor::FindConnectedPlayer (ObjectGuid const guid)
 
PlayerObjectAccessor::FindPlayerByName (std::string const &name, bool checkInWorld=true)
 
CreatureObjectAccessor::GetSpawnedCreatureByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned creature by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.
 
GameObjectObjectAccessor::GetSpawnedGameObjectByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned gameobject by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.
 
HashMapHolder< Player >::MapType const & ObjectAccessor::GetPlayers ()
 
template<class T >
void ObjectAccessor::AddObject (T *object)
 
template<class T >
void ObjectAccessor::RemoveObject (T *object)
 
void ObjectAccessor::SaveAllPlayers ()
 
template<>
void ObjectAccessor::AddObject (Player *player)
 
template<>
void ObjectAccessor::RemoveObject (Player *player)
 
void ObjectAccessor::UpdatePlayerNameMapReference (std::string oldname, Player *player)