aboutsummaryrefslogtreecommitdiff
path: root/src/game/Opcodes.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-01 16:47:49 -0500
committermegamage <none@none>2009-09-01 16:47:49 -0500
commitdc68c2b269fdd401e2f0f6e1e372292b74c66bb8 (patch)
tree385932d0531cec602257aa91492d14dfe7533602 /src/game/Opcodes.h
parentf0e6acda3b080f7c686190731a2a8c6f5215336b (diff)
[8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data` * Move its in sql update from `account_data` to new table. * For client packets that can be send in loggined state or just after logout but assocualted with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT * Store low guid for loggedin player or recently logout into WorldSession. Author: VladimirMangos, TOM_RUS --HG-- branch : trunk
Diffstat (limited to 'src/game/Opcodes.h')
-rw-r--r--src/game/Opcodes.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h
index b468cc64978..c3371f866b6 100644
--- a/src/game/Opcodes.h
+++ b/src/game/Opcodes.h
@@ -1271,9 +1271,10 @@ enum Opcodes
/// Player state
enum SessionStatus
{
- STATUS_AUTHED = 0, ///< Player authenticated
- STATUS_LOGGEDIN, ///< Player in game
- STATUS_TRANSFER, ///< Player transferring to another map
+ STATUS_AUTHED = 0, ///< Player authenticated (_player==NULL, m_playerRecentlyLogout = false or will be reset before handler call, m_GUID have garbage)
+ STATUS_LOGGEDIN, ///< Player in game (_player!=NULL, m_GUID == _player->GetGUID(), inWorld())
+ STATUS_TRANSFER, ///< Player transferring to another map (_player!=NULL, m_GUID == _player->GetGUID(), !inWorld())
+ STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT, ///< _player!= NULL or _player==NULL && m_playerRecentlyLogout, m_GUID store last _player guid)
STATUS_NEVER ///< Opcode not accepted from client (deprecated or server side only)
};