|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <GroupMgr.h>
Public Types | |
| typedef std::map< uint32, Group * > | GroupContainer |
| typedef std::vector< Group * > | GroupDbContainer |
Public Member Functions | |
| void | AddGroup (Group *group) |
| void | FreeGroupDbStoreId (Group *group) |
| uint32 | GenerateGroupId () |
| uint32 | GenerateNewGroupDbStoreId () |
| Group * | GetGroupByDbStoreId (uint32 storageId) const |
| Group * | GetGroupByGUID (uint32 guid) const |
| void | LoadGroups () |
| void | RegisterGroupDbStoreId (uint32 storageId, Group *group) |
| void | RemoveGroup (Group *group) |
| void | SetGroupDbStoreSize (uint32 newSize) |
| void | SetNextGroupDbStoreId (uint32 storageId) |
Protected Attributes | |
| GroupDbContainer | GroupDbStore |
| GroupContainer | GroupStore |
| uint32 | NextGroupDbStoreId |
| uint32 | NextGroupId |
Private Member Functions | |
| GroupMgr () | |
| ~GroupMgr () | |
Friends | |
| class | Skyfire::Singleton< GroupMgr, Skyfire::NullMutex > |
Definition at line 12 of file GroupMgr.h.
| typedef std::map<uint32, Group*> GroupMgr::GroupContainer |
Definition at line 20 of file GroupMgr.h.
| typedef std::vector<Group*> GroupMgr::GroupDbContainer |
Definition at line 21 of file GroupMgr.h.
|
inlineprivate |
Definition at line 16 of file GroupMgr.h.
References GroupMgr(), NextGroupDbStoreId, and NextGroupId.
Referenced by GroupMgr().
|
private |
Definition at line 12 of file GroupMgr.cpp.
References GroupStore.
| void GroupMgr::AddGroup | ( | Group * | group | ) |
Definition at line 86 of file GroupMgr.cpp.
References Group::GetLowGUID(), and GroupStore.
Referenced by LoadGroups().
| void GroupMgr::FreeGroupDbStoreId | ( | Group * | group | ) |
Definition at line 49 of file GroupMgr.cpp.
References Group::GetDbStoreId(), GroupDbStore, and NextGroupDbStoreId.
| uint32 GroupMgr::GenerateGroupId | ( | ) |
Definition at line 67 of file GroupMgr.cpp.
References ERROR_EXIT_CODE, NextGroupId, SF_LOG_ERROR, and World::StopNow().
| uint32 GroupMgr::GenerateNewGroupDbStoreId | ( | ) |
Definition at line 18 of file GroupMgr.cpp.
References ERROR_EXIT_CODE, GroupDbStore, NextGroupDbStoreId, SF_LOG_ERROR, and World::StopNow().
Definition at line 77 of file GroupMgr.cpp.
References GroupStore.
| void GroupMgr::LoadGroups | ( | ) |
Definition at line 96 of file GroupMgr.cpp.
References AddGroup(), Group::BindToInstance(), CharacterDatabase, Group::GetDbStoreId(), GetGroupByDbStoreId(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt8(), MapEntry::IsInstance(), Group::LoadGroupFromDB(), Group::LoadMemberFromDB(), MapEntry::map_type, MapEntry::MapID, DifficultyEntry::maptype, NextGroupDbStoreId, RegisterGroupDbStoreId(), sDifficultyStore, SF_LOG_ERROR, SF_LOG_INFO, sInstanceSaveMgr, and sMapStore.
| void GroupMgr::RemoveGroup | ( | Group * | group | ) |
Definition at line 91 of file GroupMgr.cpp.
References Group::GetLowGUID(), and GroupStore.
|
inline |
Definition at line 30 of file GroupMgr.h.
References GroupDbStore.
|
inline |
Definition at line 28 of file GroupMgr.h.
References NextGroupDbStoreId.
|
friend |
Definition at line 1 of file GroupMgr.h.
|
protected |
Definition at line 41 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GetGroupByDbStoreId(), RegisterGroupDbStoreId(), and SetGroupDbStoreSize().
|
protected |
Definition at line 40 of file GroupMgr.h.
Referenced by AddGroup(), GetGroupByGUID(), RemoveGroup(), and ~GroupMgr().
|
protected |
Definition at line 39 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GroupMgr(), LoadGroups(), and SetNextGroupDbStoreId().
|
protected |
Definition at line 38 of file GroupMgr.h.
Referenced by GenerateGroupId(), and GroupMgr().