Core/Guilds: implement Guild Challenges

This commit is contained in:
Ovalord committed 2017-12-21 19:44:57 +01:00
1 parent 8a63294194
commit be1615d5f4
16 files changed
+369 -101

No files matched your search

+13
View File
@@ -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);