aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/Map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Maps/Map.h')
-rw-r--r--src/server/game/Maps/Map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h
index 3362670dbb3..44c46c9219c 100644
--- a/src/server/game/Maps/Map.h
+++ b/src/server/game/Maps/Map.h
@@ -27,6 +27,7 @@
#include "GridRefManager.h"
#include "MapDefines.h"
#include "MapRefManager.h"
+#include "MPSCQueue.h"
#include "ObjectGuid.h"
#include "Optional.h"
#include "SharedDefines.h"
@@ -775,6 +776,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); }
+ typedef std::function<void(Map*)> FarSpellCallback;
+ void AddFarSpellCallback(FarSpellCallback&& callback);
+
private:
// Type specific code for add/remove to/from grid
template<class T>
@@ -839,6 +843,8 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
std::unordered_set<Corpse*> _corpseBones;
std::unordered_set<Object*> _updateObjects;
+
+ MPSCQueue<FarSpellCallback> _farSpellCallbacks;
};
enum InstanceResetMethod