diff options
author | n0n4m3 <none@none> | 2010-04-11 11:00:02 +0400 |
---|---|---|
committer | n0n4m3 <none@none> | 2010-04-11 11:00:02 +0400 |
commit | 1dc4f7c745f9f061a545c11c0132a67e5f828702 (patch) | |
tree | 0231fa152a78a56f5852513e6bc7d612dac2a385 /src/game/Player.h | |
parent | 420496c92a23c0a7ecddefc4a0ca08ca8f901983 (diff) |
Drop characters data blob. Bit thx to hunuza.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r-- | src/game/Player.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 7919b85a198..3a5f88548e9 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -56,8 +56,9 @@ class OutdoorPvP; typedef std::deque<Mail*> PlayerMails; -#define PLAYER_MAX_SKILLS 127 -#define PLAYER_MAX_DAILY_QUESTS 25 +#define PLAYER_MAX_SKILLS 127 +#define PLAYER_MAX_DAILY_QUESTS 25 +#define PLAYER_EXPLORED_ZONES_SIZE 128 // Note: SPELLMOD_* values is aura types in fact enum SpellModType @@ -491,7 +492,8 @@ enum PlayerFlags #define PLAYER_TITLE_HAND_OF_ADAL UI64LIT(0x0000008000000000) // 39 #define PLAYER_TITLE_VENGEFUL_GLADIATOR UI64LIT(0x0000010000000000) // 40 -#define MAX_TITLE_INDEX (3*64) // 3 uint64 fields +#define KNOWN_TITLES_SIZE 3 +#define MAX_TITLE_INDEX (KNOWN_TITLES_SIZE*64) // 3 uint64 fields // used in PLAYER_FIELD_BYTES values enum PlayerFieldByteFlags @@ -1406,11 +1408,8 @@ class Player : public Unit, public GridObject<Player> bool isBeingLoaded() const { return GetSession()->PlayerLoading();} bool MinimalLoadFromDB(QueryResult_AutoPtr result, uint32 guid); - static bool LoadValuesArrayFromDB(Tokens& data,uint64 guid); static uint32 GetUInt32ValueFromArray(Tokens const& data, uint16 index); static float GetFloatValueFromArray(Tokens const& data, uint16 index); - static uint32 GetUInt32ValueFromDB(uint16 index, uint64 guid); - static float GetFloatValueFromDB(uint16 index, uint64 guid); static uint32 GetZoneIdFromDB(uint64 guid); static uint32 GetLevelFromDB(uint64 guid); static bool LoadPositionFromDB(uint32& mapid, float& x,float& y,float& z,float& o, bool& in_flight, uint64 guid); @@ -1422,12 +1421,8 @@ class Player : public Unit, public GridObject<Player> void SaveToDB(); void SaveInventoryAndGoldToDB(); // fast save function for item/money cheating preventing void SaveGoldToDB(); - void SaveDataFieldToDB(); - static bool SaveValuesArrayInDB(Tokens const& data,uint64 guid); static void SetUInt32ValueInArray(Tokens& data,uint16 index, uint32 value); static void SetFloatValueInArray(Tokens& data,uint16 index, float value); - static void SetUInt32ValueInDB(uint16 index, uint32 value, uint64 guid); - static void SetFloatValueInDB(uint16 index, float value, uint64 guid); static void Customize(uint64 guid, uint8 gender, uint8 skin, uint8 face, uint8 hairStyle, uint8 hairColor, uint8 facialHair); static void SavePositionInDB(uint32 mapid, float x,float y,float z,float o,uint32 zone,uint64 guid); @@ -2384,6 +2379,7 @@ class Player : public Unit, public GridObject<Player> void _LoadBGData(QueryResult_AutoPtr result); void _LoadGlyphs(QueryResult_AutoPtr result); void _LoadTalents(QueryResult_AutoPtr result); + void _LoadIntoDataField(const char* data, uint32 startOffset, uint32 count); /*********************************************************/ /*** SAVE SYSTEM ***/ |