- CGTooltip::SetItem with section helpers, TooltipItemCallback, Script_SetBagItem, Script_SetInventoryItem, Script_SetHyperlink - DBCache AddItems/DenyItem/Invalidate; NameCache AddItem, reverse name index (non-owning key), NameCache::Copy - ItemLinkInfo::GetItemIdFromLink, CGMerchantInfo::GetRepairCost, CGUnit_C::GetPlayerDiscount, CGEquipmentManager::GetSetList/GetSetByID - item/player/enchant helpers used by the item tooltip - fix SetSpell callers passing the last rank arguments in the wrong order Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
36 lines
838 B
C++
36 lines
838 B
C++
#ifndef WOW_SOURCE_GAME_GAMECLIENT_NAMECACHE_H
|
|
#define WOW_SOURCE_GAME_GAMECLIENT_NAMECACHE_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "WoW/Source/Object/WGUID.h"
|
|
|
|
class CDataStore;
|
|
|
|
class NameCache {
|
|
public:
|
|
static const uint32_t s_cacheVersion = 4;
|
|
|
|
struct DeclinedNames {
|
|
/* 0000 */ char m_names[5][64];
|
|
};
|
|
|
|
/* 0000 */ char m_name[48];
|
|
/* 0030 */ NameCache::DeclinedNames* m_declinedNames;
|
|
/* 0034 */ char m_realmName[256];
|
|
/* 0134 */ uint32_t unk_0134;
|
|
/* 0138 */ WOWGUID m_guid;
|
|
/* 0140 */ uint32_t m_race;
|
|
/* 0144 */ uint32_t m_sex;
|
|
/* 0148 */ uint32_t m_class;
|
|
|
|
NameCache();
|
|
~NameCache();
|
|
NameCache& Copy(const NameCache& other);
|
|
void Pack(CDataStore* msg);
|
|
void Unpack(CDataStore* msg);
|
|
char* FullName(char* buffer, uint32_t size);
|
|
};
|
|
|
|
#endif
|