TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Opcodes.cpp File Reference
#include "Opcodes.h"
#include "WorldSession.h"
#include "Packets/AllPackets.h"
+ Include dependency graph for Opcodes.cpp:

Classes

class  PacketHandler< PacketClass, HandlerFunction >
 
class  PacketHandler< WorldPacket, HandlerFunction >
 

Macros

#define DEFINE_HANDLER(opcode, status, processing, packetclass, handler)   ValidateAndSetClientOpcode<packetclass, handler>(opcode, #opcode, status, processing);
 
#define DEFINE_OPCODE_HANDLER_OLD(opcode, status, processing, handler)   DEFINE_HANDLER(opcode, status, processing, WorldPacket, handler);
 
#define DEFINE_SERVER_OPCODE_HANDLER(opcode, status, con)
 

Variables

OpcodeTable opcodeTable
 

Macro Definition Documentation

#define DEFINE_HANDLER (   opcode,
  status,
  processing,
  packetclass,
  handler 
)    ValidateAndSetClientOpcode<packetclass, handler>(opcode, #opcode, status, processing);
#define DEFINE_OPCODE_HANDLER_OLD (   opcode,
  status,
  processing,
  handler 
)    DEFINE_HANDLER(opcode, status, processing, WorldPacket, handler);
#define DEFINE_SERVER_OPCODE_HANDLER (   opcode,
  status,
  con 
)
Value:
static_assert(status == STATUS_NEVER || status == STATUS_UNHANDLED, "Invalid status for server opcode"); \
ValidateAndSetServerOpcode(opcode, #opcode, status, con)
Definition: Opcodes.h:1683
Definition: Opcodes.h:1682