#include <CharacterCache.h>
|
| CharacterCache () |
|
| ~CharacterCache () |
|
void | LoadCharacterCacheStorage () |
| Loads several pieces of information on server startup with the GUID There is no further database query necessary. These are a number of methods that work into the calling function. More...
|
|
void | AddCharacterCacheEntry (ObjectGuid const &guid, uint32 accountId, std::string const &name, uint8 gender, uint8 race, uint8 playerClass, uint8 level, bool isDeleted) |
|
void | DeleteCharacterCacheEntry (ObjectGuid const &guid, std::string const &name) |
|
void | UpdateCharacterData (ObjectGuid const &guid, std::string const &name, Optional< uint8 > gender={}, Optional< uint8 > race={}) |
|
void | UpdateCharacterGender (ObjectGuid const &guid, uint8 gender) |
|
void | UpdateCharacterLevel (ObjectGuid const &guid, uint8 level) |
|
void | UpdateCharacterAccountId (ObjectGuid const &guid, uint32 accountId) |
|
void | UpdateCharacterGuildId (ObjectGuid const &guid, ObjectGuid::LowType guildId) |
|
void | UpdateCharacterArenaTeamId (ObjectGuid const &guid, uint8 slot, uint32 arenaTeamId) |
|
void | UpdateCharacterInfoDeleted (ObjectGuid const &guid, bool deleted, std::string const &name) |
|
bool | HasCharacterCacheEntry (ObjectGuid const &guid) const |
|
CharacterCacheEntry const * | GetCharacterCacheByGuid (ObjectGuid const &guid) const |
|
CharacterCacheEntry const * | GetCharacterCacheByName (std::string const &name) const |
|
ObjectGuid | GetCharacterGuidByName (std::string const &name) const |
|
bool | GetCharacterNameByGuid (ObjectGuid guid, std::string &name) const |
|
Team | GetCharacterTeamByGuid (ObjectGuid guid) const |
|
uint32 | GetCharacterAccountIdByGuid (ObjectGuid guid) const |
|
uint32 | GetCharacterAccountIdByName (std::string const &name) const |
|
uint8 | GetCharacterLevelByGuid (ObjectGuid guid) const |
|
ObjectGuid::LowType | GetCharacterGuildIdByGuid (ObjectGuid guid) const |
|
uint32 | GetCharacterArenaTeamIdByGuid (ObjectGuid guid, uint8 type) const |
|
bool | GetCharacterNameAndClassByGUID (ObjectGuid guid, std::string &name, uint8 &_class) const |
|
Definition at line 41 of file CharacterCache.h.
◆ CharacterCache()
CharacterCache::CharacterCache |
( |
| ) |
|
◆ ~CharacterCache()
CharacterCache::~CharacterCache |
( |
| ) |
|
◆ AddCharacterCacheEntry()
void CharacterCache::AddCharacterCacheEntry |
( |
ObjectGuid const & |
guid, |
|
|
uint32 |
accountId, |
|
|
std::string const & |
name, |
|
|
uint8 |
gender, |
|
|
uint8 |
race, |
|
|
uint8 |
playerClass, |
|
|
uint8 |
level, |
|
|
bool |
isDeleted |
|
) |
| |
◆ DeleteCharacterCacheEntry()
void CharacterCache::DeleteCharacterCacheEntry |
( |
ObjectGuid const & |
guid, |
|
|
std::string const & |
name |
|
) |
| |
◆ GetCharacterAccountIdByGuid()
◆ GetCharacterAccountIdByName()
uint32 CharacterCache::GetCharacterAccountIdByName |
( |
std::string const & |
name | ) |
const |
◆ GetCharacterArenaTeamIdByGuid()
◆ GetCharacterCacheByGuid()
◆ GetCharacterCacheByName()
CharacterCacheEntry const * CharacterCache::GetCharacterCacheByName |
( |
std::string const & |
name | ) |
const |
◆ GetCharacterGuidByName()
ObjectGuid CharacterCache::GetCharacterGuidByName |
( |
std::string const & |
name | ) |
const |
◆ GetCharacterGuildIdByGuid()
◆ GetCharacterLevelByGuid()
◆ GetCharacterNameAndClassByGUID()
bool CharacterCache::GetCharacterNameAndClassByGUID |
( |
ObjectGuid |
guid, |
|
|
std::string & |
name, |
|
|
uint8 & |
_class |
|
) |
| const |
◆ GetCharacterNameByGuid()
bool CharacterCache::GetCharacterNameByGuid |
( |
ObjectGuid |
guid, |
|
|
std::string & |
name |
|
) |
| const |
◆ GetCharacterTeamByGuid()
◆ HasCharacterCacheEntry()
bool CharacterCache::HasCharacterCacheEntry |
( |
ObjectGuid const & |
guid | ) |
const |
◆ instance()
◆ LoadCharacterCacheStorage()
void CharacterCache::LoadCharacterCacheStorage |
( |
| ) |
|
Loads several pieces of information on server startup with the GUID There is no further database query necessary. These are a number of methods that work into the calling function.
- Parameters
-
guid | Requires a guid to call |
- Returns
- Name, Gender, Race, Class and Level of player character Example Usage:
if (!characterInfo)
return;
std::string playerName = characterInfo->
Name;
uint8 playerGender = characterInfo->
Sex;
Definition at line 69 of file CharacterCache.cpp.
◆ UpdateCharacterAccountId()
void CharacterCache::UpdateCharacterAccountId |
( |
ObjectGuid const & |
guid, |
|
|
uint32 |
accountId |
|
) |
| |
◆ UpdateCharacterArenaTeamId()
void CharacterCache::UpdateCharacterArenaTeamId |
( |
ObjectGuid const & |
guid, |
|
|
uint8 |
slot, |
|
|
uint32 |
arenaTeamId |
|
) |
| |
◆ UpdateCharacterData()
◆ UpdateCharacterGender()
void CharacterCache::UpdateCharacterGender |
( |
ObjectGuid const & |
guid, |
|
|
uint8 |
gender |
|
) |
| |
◆ UpdateCharacterGuildId()
◆ UpdateCharacterInfoDeleted()
void CharacterCache::UpdateCharacterInfoDeleted |
( |
ObjectGuid const & |
guid, |
|
|
bool |
deleted, |
|
|
std::string const & |
name |
|
) |
| |
◆ UpdateCharacterLevel()
void CharacterCache::UpdateCharacterLevel |
( |
ObjectGuid const & |
guid, |
|
|
uint8 |
level |
|
) |
| |
The documentation for this class was generated from the following files: