#include "Opcodes.h"
#include "Log.h"
#include "Util.h"
#include "WorldSession.h"
#include "Packets/AllPackets.h"
#include <charconv>
Go to the source code of this file.
|
| #define | DEFINE_HANDLER(opcode, status, processing, handler) ValidateAndSetClientOpcode(opcode, #opcode, status, &CallHandlerWrapper<typename get_packet_class<decltype(handler)>::type, handler>, processing) |
| |
| #define | DEFINE_SERVER_OPCODE_HANDLER(opcode, status, con) |
| |
|
| template<typename OpcodeDefinition , std::size_t N, typename T , typename FormatContext > |
| static FormatContext::iterator | GetOpcodeNameForLoggingImpl (std::array< OpcodeDefinition, N > const &definitions, T id, FormatContext &ctx) |
| |
◆ DEFINE_HANDLER
| #define DEFINE_HANDLER |
( |
|
opcode, |
|
|
|
status, |
|
|
|
processing, |
|
|
|
handler |
|
) |
| ValidateAndSetClientOpcode(opcode, #opcode, status, &CallHandlerWrapper<typename get_packet_class<decltype(handler)>::type, handler>, processing) |
◆ DEFINE_SERVER_OPCODE_HANDLER
| #define DEFINE_SERVER_OPCODE_HANDLER |
( |
|
opcode, |
|
|
|
status, |
|
|
|
con |
|
) |
| |
Value:
ValidateAndSetServerOpcode(opcode, #opcode, status, con)
◆ GetOpcodeNameForLoggingImpl()
template<typename OpcodeDefinition , std::size_t N, typename T , typename FormatContext >
| static FormatContext::iterator GetOpcodeNameForLoggingImpl |
( |
std::array< OpcodeDefinition, N > const & |
definitions, |
|
|
T |
id, |
|
|
FormatContext & |
ctx |
|
) |
| |
|
inlinestatic |
◆ opcodeTable