Mangos merge: [8874] Extract player skills from data blob. #526
Converted by Azazel. --HG-- branch : trunk
This commit is contained in:
+25
-2
@@ -573,6 +573,25 @@ enum QuestSlotStateMask
|
||||
QUEST_STATE_FAIL = 0x0002
|
||||
};
|
||||
|
||||
enum SkillUpdateState
|
||||
{
|
||||
SKILL_UNCHANGED = 0,
|
||||
SKILL_CHANGED = 1,
|
||||
SKILL_NEW = 2,
|
||||
SKILL_DELETED = 3
|
||||
};
|
||||
|
||||
struct SkillStatusData
|
||||
{
|
||||
SkillStatusData(uint8 _pos, SkillUpdateState _uState) : pos(_pos), uState(_uState)
|
||||
{
|
||||
}
|
||||
uint8 pos;
|
||||
SkillUpdateState uState;
|
||||
};
|
||||
|
||||
typedef UNORDERED_MAP<uint32, SkillStatusData> SkillStatusMap;
|
||||
|
||||
class Quest;
|
||||
class Spell;
|
||||
class Item;
|
||||
@@ -799,7 +818,8 @@ enum PlayerLoginQueryIndex
|
||||
PLAYER_LOGIN_QUERY_LOADGLYPHS = 22,
|
||||
PLAYER_LOGIN_QUERY_LOADTALENTS = 23,
|
||||
PLAYER_LOGIN_QUERY_LOADACCOUNTDATA = 24,
|
||||
MAX_PLAYER_LOGIN_QUERY = 25
|
||||
PLAYER_LOGIN_QUERY_LOADSKILLS = 25,
|
||||
MAX_PLAYER_LOGIN_QUERY = 26
|
||||
};
|
||||
|
||||
enum PlayerDelayedOperations
|
||||
@@ -2271,7 +2291,7 @@ Spell * m_spellModTakingSpell;
|
||||
void _LoadQuestStatus(QueryResult *result);
|
||||
void _LoadDailyQuestStatus(QueryResult *result);
|
||||
void _LoadGroup(QueryResult *result);
|
||||
void _LoadSkills();
|
||||
void _LoadSkills(QueryResult *result);
|
||||
void _LoadSpells(QueryResult *result);
|
||||
void _LoadFriendList(QueryResult *result);
|
||||
bool _LoadHomeBind(QueryResult *result);
|
||||
@@ -2292,6 +2312,7 @@ Spell * m_spellModTakingSpell;
|
||||
void _SaveMail();
|
||||
void _SaveQuestStatus();
|
||||
void _SaveDailyQuestStatus();
|
||||
void _SaveSkills();
|
||||
void _SaveSpells();
|
||||
void _SaveEquipmentSets();
|
||||
void _SaveBGData();
|
||||
@@ -2340,6 +2361,8 @@ Spell * m_spellModTakingSpell;
|
||||
|
||||
QuestStatusMap mQuestStatus;
|
||||
|
||||
SkillStatusMap mSkillStatus;
|
||||
|
||||
uint32 m_GuildIdInvited;
|
||||
uint32 m_ArenaTeamIdInvited;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user