diff options
author | Alex Dcnh <140754794+Wishmaster117@users.noreply.github.com> | 2025-08-25 22:55:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-25 23:55:27 +0200 |
commit | 0ed0e66ee00c5cf0ca48c6f8e5b10bf26ef15eb1 (patch) | |
tree | a54722002976069e7cacf4d156acfe5ea2d5a25d /src/server/game/Guilds/GuildMgr.h | |
parent | 2e26b18851f98d560421bb75a13fb5e425468743 (diff) |
Core/Commands: Add .guild list GM command to list all guilds (#30930)
Diffstat (limited to 'src/server/game/Guilds/GuildMgr.h')
-rw-r--r-- | src/server/game/Guilds/GuildMgr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Guilds/GuildMgr.h b/src/server/game/Guilds/GuildMgr.h index 787d8da8c16..97d82caa4f0 100644 --- a/src/server/game/Guilds/GuildMgr.h +++ b/src/server/game/Guilds/GuildMgr.h @@ -34,6 +34,8 @@ private: ~GuildMgr(); public: + typedef std::unordered_map<ObjectGuid::LowType, Trinity::unique_trackable_ptr<Guild>> GuildContainer; + GuildMgr(GuildMgr const&) = delete; GuildMgr(GuildMgr&&) = delete; GuildMgr& operator=(GuildMgr const&) = delete; @@ -47,6 +49,8 @@ public: Guild* GetGuildByName(std::string_view guildName) const; std::string GetGuildNameById(ObjectGuid::LowType guildId) const; + GuildContainer const& GetGuildStore() const { return GuildStore; } + void LoadGuildRewards(); void LoadGuilds(); @@ -64,7 +68,6 @@ public: void ResetTimes(bool week); protected: - typedef std::unordered_map<ObjectGuid::LowType, Trinity::unique_trackable_ptr<Guild>> GuildContainer; ObjectGuid::LowType NextGuildId; GuildContainer GuildStore; std::vector<GuildReward> GuildRewards; |