TrinityCore
Loading...
Searching...
No Matches
ObjectAccessor.h File Reference
#include "ObjectGuid.h"
#include <shared_mutex>
#include <unordered_map>
+ Include dependency graph for ObjectAccessor.h:

Go to the source code of this file.

Classes

class  HashMapHolder< T >
 

Namespaces

namespace  ObjectAccessor
 

Functions

TC_GAME_API WorldObject * ObjectAccessor::GetWorldObject (WorldObject const &, ObjectGuid const &)
 
TC_GAME_API Object * ObjectAccessor::GetObjectByTypeMask (WorldObject const &, ObjectGuid const &, uint32 typemask)
 
TC_GAME_API Corpse * ObjectAccessor::GetCorpse (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API GameObject * ObjectAccessor::GetGameObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API Transport * ObjectAccessor::GetTransport (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API DynamicObject * ObjectAccessor::GetDynamicObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API AreaTrigger * ObjectAccessor::GetAreaTrigger (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API SceneObject * ObjectAccessor::GetSceneObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API Conversation * ObjectAccessor::GetConversation (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API Unit * ObjectAccessor::GetUnit (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API Creature * ObjectAccessor::GetCreature (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API Pet * ObjectAccessor::GetPet (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API Player * ObjectAccessor::GetPlayer (Map const *, ObjectGuid const &guid)
 
TC_GAME_API Player * ObjectAccessor::GetPlayer (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API Creature * ObjectAccessor::GetCreatureOrPetOrVehicle (WorldObject const &, ObjectGuid const &)
 
TC_GAME_API Player * ObjectAccessor::FindPlayer (ObjectGuid const &)
 
TC_GAME_API Player * ObjectAccessor::FindPlayerByName (std::string_view name)
 
TC_GAME_API Player * ObjectAccessor::FindPlayerByLowGUID (ObjectGuid::LowType lowguid)
 
TC_GAME_API Player * ObjectAccessor::FindConnectedPlayer (ObjectGuid const &)
 
TC_GAME_API Player * ObjectAccessor::FindConnectedPlayerByName (std::string_view name)
 
TC_GAME_API HashMapHolder< Player >::MapType const & ObjectAccessor::GetPlayers ()
 
template<class T >
void ObjectAccessor::AddObject (T *object)
 
template<class T >
void ObjectAccessor::RemoveObject (T *object)
 
template<>
void ObjectAccessor::AddObject (Player *player)
 
template<>
void ObjectAccessor::RemoveObject (Player *player)
 
TC_GAME_API void ObjectAccessor::SaveAllPlayers ()