AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PacketHandler< WorldPacket, HandlerFunction > Class Template Reference
Inheritance diagram for PacketHandler< WorldPacket, HandlerFunction >:
ClientOpcodeHandler OpcodeHandler

Public Member Functions

 PacketHandler (char const *name, SessionStatus status, PacketProcessing processing)
 
void Call (WorldSession *session, WorldPacket &packet) const override
 
- Public Member Functions inherited from ClientOpcodeHandler
 ClientOpcodeHandler (char const *name, SessionStatus status, PacketProcessing processing)
 
virtual void Call (WorldSession *session, WorldPacket &packet) const =0
 
- Public Member Functions inherited from OpcodeHandler
 OpcodeHandler (char const *name, SessionStatus status)
 
virtual ~OpcodeHandler ()=default
 

Additional Inherited Members

- Public Attributes inherited from ClientOpcodeHandler
PacketProcessing ProcessingPlace
 
- Public Attributes inherited from OpcodeHandler
char const * Name
 
SessionStatus Status
 

Detailed Description

template<void(WorldSession::*)(WorldPacket &) HandlerFunction>
class PacketHandler< WorldPacket, HandlerFunction >

Constructor & Destructor Documentation

◆ PacketHandler()

template<void(WorldSession::*)(WorldPacket &) HandlerFunction>
PacketHandler< WorldPacket, HandlerFunction >::PacketHandler ( char const *  name,
SessionStatus  status,
PacketProcessing  processing 
)
inline
43: ClientOpcodeHandler(name, status, processing) { }
Definition: Opcodes.h:1385

Member Function Documentation

◆ Call()

template<void(WorldSession::*)(WorldPacket &) HandlerFunction>
void PacketHandler< WorldPacket, HandlerFunction >::Call ( WorldSession session,
WorldPacket packet 
) const
inlineoverridevirtual

Implements ClientOpcodeHandler.

46 {
47 (session->*HandlerFunction)(packet);
48 }