mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 09:14:34 +00:00
feat(Core/Map): add DoForAllPlayers method (#10371)
This commit is contained in:
@@ -606,6 +606,9 @@ public:
|
||||
void UpdateEncounterState(EncounterCreditType type, uint32 creditEntry, Unit* source);
|
||||
void LogEncounterFinished(EncounterCreditType type, uint32 creditEntry);
|
||||
|
||||
// Do whatever you want to all the players in map [including GameMasters], i.e.: param exec = [&](Player* p) { p->Whatever(); }
|
||||
void DoForAllPlayers(std::function<void(Player*)> exec);
|
||||
|
||||
GridMap* GetGrid(float x, float y);
|
||||
void EnsureGridCreated(const GridCoord&);
|
||||
[[nodiscard]] bool AllTransportsEmpty() const; // pussywizard
|
||||
|
||||
Reference in New Issue
Block a user