diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-06-11 14:04:56 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-06-11 14:04:56 +0200 |
commit | 94d829c84fb184990e26178551d10ecdca049efd (patch) | |
tree | 2adacdef7068e3d00db2983f00e7ac6799653206 /src/server/game/Maps/Map.h | |
parent | 4e2b4ada0b8cb151837a6cc8f22b75baef028b13 (diff) |
Core/Pools: Implemented pooling for instances
Diffstat (limited to 'src/server/game/Maps/Map.h')
-rw-r--r-- | src/server/game/Maps/Map.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 87dfda99b7a..d4b7b5c1c10 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -57,6 +57,7 @@ class MapInstanced; class Object; class PhaseShift; class Player; +class SpawnedPoolData; class TempSummon; class Unit; class Weather; @@ -807,6 +808,9 @@ class TC_GAME_API Map : public GridRefManager<NGridType> // This will not affect any already-present creatures in the group void SetSpawnGroupInactive(uint32 groupId) { SetSpawnGroupActive(groupId, false); } + SpawnedPoolData& GetPoolData() { return *_poolData; } + SpawnedPoolData const& GetPoolData() const { return *_poolData; } + typedef std::function<void(Map*)> FarSpellCallback; void AddFarSpellCallback(FarSpellCallback&& callback); @@ -891,6 +895,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType> } std::map<HighGuid, std::unique_ptr<ObjectGuidGeneratorBase>> _guidGenerators; + std::unique_ptr<SpawnedPoolData> _poolData; MapStoredObjectTypesContainer _objectsStore; CreatureBySpawnIdContainer _creatureBySpawnIdStore; GameObjectBySpawnIdContainer _gameobjectBySpawnIdStore; |