diff options
author | Traesh <Traesh@users.noreply.github.com> | 2017-05-14 11:40:55 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-05-14 11:40:55 +0200 |
commit | c73ce93f4cf84667d23c2ec7e425f40a845eaf4f (patch) | |
tree | 255a3af04144a58e3156491bffd1aa743fb06bfa /src/server/game/Maps/Map.cpp | |
parent | 3e18fcb8fd4ac8e9700f10eb3b6a1292c0f8beb8 (diff) |
Core/Entities : Basic Conversation Implementation (#18010)
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r-- | src/server/game/Maps/Map.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index ac2330e6f1e..9faf6961f45 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -21,6 +21,7 @@ #include "Battleground.h" #include "MMapFactory.h" #include "CellImpl.h" +#include "Conversation.h" #include "DisableMgr.h" #include "DynamicTree.h" #include "GridNotifiers.h" @@ -3037,6 +3038,9 @@ void Map::RemoveAllObjectsInRemoveList() case TYPEID_AREATRIGGER: RemoveFromMap((AreaTrigger*)obj, true); break; + case TYPEID_CONVERSATION: + RemoveFromMap((Conversation*)obj, true); + break; case TYPEID_GAMEOBJECT: { GameObject* go = obj->ToGameObject(); @@ -3185,12 +3189,14 @@ template TC_GAME_API bool Map::AddToMap(Creature*); template TC_GAME_API bool Map::AddToMap(GameObject*); template TC_GAME_API bool Map::AddToMap(DynamicObject*); template TC_GAME_API bool Map::AddToMap(AreaTrigger*); +template TC_GAME_API bool Map::AddToMap(Conversation*); template TC_GAME_API void Map::RemoveFromMap(Corpse*, bool); template TC_GAME_API void Map::RemoveFromMap(Creature*, bool); template TC_GAME_API void Map::RemoveFromMap(GameObject*, bool); template TC_GAME_API void Map::RemoveFromMap(DynamicObject*, bool); template TC_GAME_API void Map::RemoveFromMap(AreaTrigger*, bool); +template TC_GAME_API void Map::RemoveFromMap(Conversation*, bool); /* ******* Dungeon Instance Maps ******* */ @@ -3773,6 +3779,11 @@ AreaTrigger* Map::GetAreaTrigger(ObjectGuid const& guid) return _objectsStore.Find<AreaTrigger>(guid); } +Conversation* Map::GetConversation(ObjectGuid const& guid) +{ + return _objectsStore.Find<Conversation>(guid); +} + Corpse* Map::GetCorpse(ObjectGuid const& guid) { return _objectsStore.Find<Corpse>(guid); |