TrinityCore
Opcodes.cpp File Reference
#include "Opcodes.h"
#include "Log.h"
#include "WorldSession.h"
#include "Packets/AllPackets.h"
+ Include dependency graph for Opcodes.cpp:

Go to the source code of this file.

Classes

class  PacketHandler< PacketClass, HandlerFunction >
 
struct  get_packet_class< T >
 
struct  get_packet_class< void(WorldSession::*)(PacketClass &)>
 

Macros

#define DEFINE_HANDLER(opcode, status, processing, handler)    ValidateAndSetClientOpcode<decltype(handler), handler>(opcode, #opcode, status, processing)
 
#define DEFINE_SERVER_OPCODE_HANDLER(opcode, status, con)
 

Functions

template<typename T >
std::string GetOpcodeNameForLoggingImpl (T id)
 
std::string GetOpcodeNameForLogging (OpcodeClient opcode)
 Lookup opcode name for human understandable logging. More...
 
std::string GetOpcodeNameForLogging (OpcodeServer opcode)
 

Variables

OpcodeTable opcodeTable
 

Macro Definition Documentation

◆ DEFINE_HANDLER

#define DEFINE_HANDLER (   opcode,
  status,
  processing,
  handler 
)     ValidateAndSetClientOpcode<decltype(handler), handler>(opcode, #opcode, status, processing)

◆ DEFINE_SERVER_OPCODE_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)
@ STATUS_NEVER
Definition: Opcodes.h:2120
@ STATUS_UNHANDLED
Definition: Opcodes.h:2121

Function Documentation

◆ GetOpcodeNameForLoggingImpl()

template<typename T >
std::string GetOpcodeNameForLoggingImpl ( id)
inline

Definition at line 2187 of file Opcodes.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: