diff options
Diffstat (limited to 'src/game/ObjectMgr.h')
-rw-r--r-- | src/game/ObjectMgr.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index f76cc232e57..898d82ea6ff 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -209,6 +209,23 @@ enum ConditionType #define MAX_CONDITION 11 // maximum value in ConditionType enum +//Player's info +typedef struct _tagCachePlayerInfo +{ + std::string sPlayerName; + uint32 unfield; + uint32 unLevel; + uint8 unClass; +//Arena + uint32 unArenaInfoId0; + uint32 unArenaInfoId1; + uint32 unArenaInfoId2; + uint32 unArenaInfoSlot0; + uint32 unArenaInfoSlot1; + uint32 unArenaInfoSlot2; +}CachePlayerInfo, *PCachePlayerInfo; +typedef HM_NAMESPACE::hash_map<uint32, PCachePlayerInfo> CachePlayerInfoMap; + struct PlayerCondition { ConditionType condition; // additional condition type @@ -568,6 +585,10 @@ class ObjectMgr uint32 GenerateMailID(); uint32 GenerateItemTextID(); uint32 GeneratePetNumber(); + + void LoadPlayerInfoInCache(); + PCachePlayerInfo GetPlayerInfoFromCache(uint32 unPlayerGuid) const; + CachePlayerInfoMap m_mPlayerInfoMap; uint32 CreateItemText(std::string text); std::string GetItemText( uint32 id ) |