Core/Guilds: implement Guild Challenges
This commit is contained in:
1 parent
8a63294194
commit
be1615d5f4
16 files changed
+369
-101
No files matched your search
@@ -220,6 +220,19 @@ bool CharacterCache::GetCharacterNameByGuid(ObjectGuid guid, std::string& name)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CharacterCache::GetPlayerGuildIdByGUID(ObjectGuid guid, uint32& guildId) const
|
||||
{
|
||||
auto itr = _characterCacheStore.find(guid);
|
||||
if (itr == _characterCacheStore.end())
|
||||
return false;
|
||||
|
||||
if (!itr->second.GuildId)
|
||||
return false;
|
||||
|
||||
guildId = itr->second.GuildId;
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32 CharacterCache::GetCharacterTeamByGuid(ObjectGuid guid) const
|
||||
{
|
||||
auto itr = _characterCacheStore.find(guid);
|
||||
|
||||
Reference in new issue
Block a user