diff options
author | maximius <none@none> | 2009-10-17 15:51:44 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:51:44 -0700 |
commit | e585187b248f48b3c6e9247b49fa07c6565d65e5 (patch) | |
tree | 637c5b7ddacf41040bef4ea4f75a97da64c6a9bc /src/game/Opcodes.h | |
parent | 26b5e033ffde3d161382fc9addbfa99738379641 (diff) |
*Backed out changeset 3be01fb200a5
--HG--
branch : trunk
Diffstat (limited to 'src/game/Opcodes.h')
-rw-r--r-- | src/game/Opcodes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h index e805eea3752..c3371f866b6 100644 --- a/src/game/Opcodes.h +++ b/src/game/Opcodes.h @@ -17,17 +17,22 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + /// \addtogroup u2w /// @{ /// \file + #ifndef _OPCODES_H #define _OPCODES_H + #include "Common.h" + // Note: this include need for be sure have full definition of class WorldSession // if this class definition not complite then VS for x64 release use different size for // struct OpcodeHandler in this header and Opcode.cpp and get totally wrong data from // table opcodeTable in source when Opcode.h included but WorldSession.h not included #include "WorldSession.h" + /// List of Opcodes enum Opcodes { @@ -1262,6 +1267,7 @@ enum Opcodes SMSG_EQUIPMENT_SET_USE_RESULT = 0x4CC, // SMSG, UseEquipmentSetResult? NUM_MSG_TYPES = 0x4CD }; + /// Player state enum SessionStatus { @@ -1271,14 +1277,18 @@ enum SessionStatus 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) }; + class WorldPacket; + struct OpcodeHandler { char const* name; SessionStatus status; void (WorldSession::*handler)(WorldPacket& recvPacket); }; + extern OpcodeHandler opcodeTable[NUM_MSG_TYPES]; + /// Lookup opcode name for human understandable logging inline const char* LookupOpcodeName(uint16 id) { |