aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Guilds/GuildMgr.h
diff options
context:
space:
mode:
authorAlex Dcnh <140754794+Wishmaster117@users.noreply.github.com>2025-08-25 22:55:27 +0100
committerGitHub <noreply@github.com>2025-08-25 23:55:27 +0200
commit0ed0e66ee00c5cf0ca48c6f8e5b10bf26ef15eb1 (patch)
treea54722002976069e7cacf4d156acfe5ea2d5a25d /src/server/game/Guilds/GuildMgr.h
parent2e26b18851f98d560421bb75a13fb5e425468743 (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.h5
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;