TrinityCore
Loading...
Searching...
No Matches
GuildMgr Class Reference

#include <GuildMgr.h>

Public Member Functions

GuildGetGuildByLeader (ObjectGuid guid) const
 
GuildGetGuildById (ObjectGuid::LowType guildId) const
 
GuildGetGuildByName (std::string_view guildName) const
 
std::string GetGuildNameById (ObjectGuid::LowType guildId) const
 
void LoadGuilds ()
 
void AddGuild (Guild *guild)
 
void RemoveGuild (ObjectGuid::LowType guildId)
 
ObjectGuid::LowType GenerateGuildId ()
 
void SetNextGuildId (ObjectGuid::LowType Id)
 
void ResetTimes ()
 

Static Public Member Functions

static GuildMgrinstance ()
 

Protected Types

typedef std::unordered_map< ObjectGuid::LowType, Trinity::unique_trackable_ptr< Guild > > GuildContainer
 

Protected Attributes

ObjectGuid::LowType NextGuildId
 
GuildContainer GuildStore
 

Private Member Functions

 GuildMgr ()
 
 ~GuildMgr ()
 
 GuildMgr (GuildMgr const &)=delete
 
GuildMgroperator= (GuildMgr const &)=delete
 

Detailed Description

Definition at line 29 of file GuildMgr.h.

Member Typedef Documentation

◆ GuildContainer

Definition at line 54 of file GuildMgr.h.

Constructor & Destructor Documentation

◆ GuildMgr() [1/2]

GuildMgr::GuildMgr ( )
private

Definition at line 26 of file GuildMgr.cpp.

◆ ~GuildMgr()

GuildMgr::~GuildMgr ( )
privatedefault

◆ GuildMgr() [2/2]

GuildMgr::GuildMgr ( GuildMgr const &  )
privatedelete

Member Function Documentation

◆ AddGuild()

void GuildMgr::AddGuild ( Guild guild)

Definition at line 31 of file GuildMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GenerateGuildId()

ObjectGuid::LowType GuildMgr::GenerateGuildId ( )

Definition at line 43 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildById()

Guild * GuildMgr::GetGuildById ( ObjectGuid::LowType  guildId) const

Definition at line 54 of file GuildMgr.cpp.

+ Here is the caller graph for this function:

◆ GetGuildByLeader()

Guild * GuildMgr::GetGuildByLeader ( ObjectGuid  guid) const

Definition at line 86 of file GuildMgr.cpp.

◆ GetGuildByName()

Guild * GuildMgr::GetGuildByName ( std::string_view  guildName) const

Definition at line 63 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildNameById()

std::string GuildMgr::GetGuildNameById ( ObjectGuid::LowType  guildId) const

Definition at line 72 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

GuildMgr * GuildMgr::instance ( )
static

Definition at line 80 of file GuildMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadGuilds()

void GuildMgr::LoadGuilds ( )

Definition at line 95 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ operator=()

GuildMgr & GuildMgr::operator= ( GuildMgr const &  )
privatedelete

◆ RemoveGuild()

void GuildMgr::RemoveGuild ( ObjectGuid::LowType  guildId)

Definition at line 38 of file GuildMgr.cpp.

◆ ResetTimes()

void GuildMgr::ResetTimes ( )

Definition at line 398 of file GuildMgr.cpp.

◆ SetNextGuildId()

void GuildMgr::SetNextGuildId ( ObjectGuid::LowType  Id)
inline

Definition at line 50 of file GuildMgr.h.

Member Data Documentation

◆ GuildStore

GuildContainer GuildMgr::GuildStore
protected

Definition at line 56 of file GuildMgr.h.

◆ NextGuildId

ObjectGuid::LowType GuildMgr::NextGuildId
protected

Definition at line 55 of file GuildMgr.h.


The documentation for this class was generated from the following files: