diff options
Diffstat (limited to 'src/server/game/Maps/Map.h')
-rw-r--r-- | src/server/game/Maps/Map.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 162e3fe7db5..7e5b294e460 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -791,6 +791,12 @@ class TC_GAME_API Map : public GridRefManager<NGridType> RemoveRespawnTime(info, doRespawn, dbTrans); } + SpawnGroupTemplateData const* GetSpawnGroupData(uint32 groupId) const; + bool SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn = false, bool force = false, std::vector<WorldObject*>* spawnedObjects = nullptr); + bool SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes = false); + void SetSpawnGroupActive(uint32 groupId, bool state); + bool IsSpawnGroupActive(uint32 groupId) const; + private: // Type specific code for add/remove to/from grid template<class T> @@ -825,6 +831,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType> RespawnInfoMap _gameObjectRespawnTimesBySpawnId; RespawnInfoMap& GetRespawnMapForType(SpawnObjectType type) { return (type == SPAWN_TYPE_GAMEOBJECT) ? _gameObjectRespawnTimesBySpawnId : _creatureRespawnTimesBySpawnId; } RespawnInfoMap const& GetRespawnMapForType(SpawnObjectType type) const { return (type == SPAWN_TYPE_GAMEOBJECT) ? _gameObjectRespawnTimesBySpawnId : _creatureRespawnTimesBySpawnId; } + std::unordered_set<uint32> _toggledSpawnGroupIds; uint32 _respawnCheckTimer; std::unordered_map<uint32, uint32> _zonePlayerCountMap; |