From d7302ffd1499433fef2cc4e824ae9443c3d2c79f Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 11 Oct 2021 12:59:19 +0200 Subject: Core/Scenes: Implemented spell created SceneObjects --- src/server/game/Maps/Map.cpp | 7 +++++++ src/server/game/Maps/Map.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/server/game/Maps') diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 01880d7bcea..ac4760f72fc 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -3823,6 +3823,7 @@ 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(SceneObject*); template TC_GAME_API bool Map::AddToMap(Conversation*); template TC_GAME_API void Map::RemoveFromMap(Corpse*, bool); @@ -3830,6 +3831,7 @@ 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(SceneObject*, bool); template TC_GAME_API void Map::RemoveFromMap(Conversation*, bool); /* ******* Dungeon Instance Maps ******* */ @@ -4421,6 +4423,11 @@ AreaTrigger* Map::GetAreaTrigger(ObjectGuid const& guid) return _objectsStore.Find(guid); } +SceneObject* Map::GetSceneObject(ObjectGuid const& guid) +{ + return _objectsStore.Find(guid); +} + Conversation* Map::GetConversation(ObjectGuid const& guid) { return _objectsStore.Find(guid); diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 811aba5082b..cdc49d3d8a9 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -442,6 +442,7 @@ class TC_GAME_API Map : public GridRefManager TempSummon* SummonCreature(uint32 entry, Position const& pos, SummonPropertiesEntry const* properties = nullptr, uint32 duration = 0, Unit* summoner = nullptr, uint32 spellId = 0, uint32 vehId = 0, ObjectGuid privateObjectOwner = ObjectGuid::Empty); void SummonCreatureGroup(uint8 group, std::list* list = nullptr); AreaTrigger* GetAreaTrigger(ObjectGuid const& guid); + SceneObject* GetSceneObject(ObjectGuid const& guid); Conversation* GetConversation(ObjectGuid const& guid); Player* GetPlayer(ObjectGuid const& guid); Corpse* GetCorpse(ObjectGuid const& guid); -- cgit v1.2.3