Core/Misc: Moved CharacterInfo out of world to separate class

Closes #19030
This commit is contained in:
xinef1
2017-02-05 23:14:19 +01:00
committed by Shauren
parent 3c605ba614
commit 59ce3d6c9b
42 changed files with 514 additions and 386 deletions

View File

@@ -27,11 +27,12 @@
#include "UpdateMask.h"
#include "NPCHandler.h"
#include "MapManager.h"
#include "CharacterCache.h"
void WorldSession::SendNameQueryOpcode(ObjectGuid guid)
{
Player* player = ObjectAccessor::FindConnectedPlayer(guid);
CharacterInfo const* nameData = sWorld->GetCharacterInfo(guid);
CharacterCacheEntry const* nameData = sCharacterCache->GetCharacterCacheByGuid(guid);
WorldPacket data(SMSG_NAME_QUERY_RESPONSE, (8+1+1+1+1+1+10));
data << guid.WriteAsPacked();