Core/Scenes: Implemented spell created SceneObjects

This commit is contained in:
Shauren
2021-10-11 12:59:19 +02:00
parent 8492c273dd
commit d7302ffd14
17 changed files with 435 additions and 16 deletions

View File

@@ -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<AreaTrigger>(guid);
}
SceneObject* Map::GetSceneObject(ObjectGuid const& guid)
{
return _objectsStore.Find<SceneObject>(guid);
}
Conversation* Map::GetConversation(ObjectGuid const& guid)
{
return _objectsStore.Find<Conversation>(guid);