aboutsummaryrefslogtreecommitdiff
path: root/src/game/Opcodes.h
diff options
context:
space:
mode:
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)
};