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.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h
index c3371f866b6..e805eea3752 100644
--- a/src/game/Opcodes.h
+++ b/src/game/Opcodes.h
@@ -17,22 +17,17 @@
* 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
{
@@ -1267,7 +1262,6 @@ enum Opcodes
SMSG_EQUIPMENT_SET_USE_RESULT = 0x4CC, // SMSG, UseEquipmentSetResult?
NUM_MSG_TYPES = 0x4CD
};
-
/// Player state
enum SessionStatus
{
@@ -1277,18 +1271,14 @@ 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)
{