Horizon Official Technical Documentation
Horizon::Char::CH_DELETE_CHAR3_CANCEL Class Reference

Main object for the aegis packet: CH_DELETE_CHAR3_CANCEL. More...

#include <HandledPackets.hpp>

+ Inheritance diagram for Horizon::Char::CH_DELETE_CHAR3_CANCEL:
+ Collaboration diagram for Horizon::Char::CH_DELETE_CHAR3_CANCEL:

Public Member Functions

 CH_DELETE_CHAR3_CANCEL (std::shared_ptr< CharSession > s)
 
virtual ~CH_DELETE_CHAR3_CANCEL ()
 
void handle (ByteBuffer &&buf)
 CH_DELETE_CHAR3_CANCEL. More...
 
void deserialize (ByteBuffer &buf)
 
- Public Member Functions inherited from Horizon::Base::NetworkPacket< CharSession >
 NetworkPacket (uint16_t packet_id, std::shared_ptr< CharSession > s)
 
virtual ~NetworkPacket ()
 
void set_packet_id (uint16_t id)
 
uint16_t get_packet_id ()
 
ByteBufferbuf ()
 
std::shared_ptr< CharSession > get_session ()
 Retrieves the session from this handler instance. More...
 
virtual void handle (ByteBuffer &&buf)
 
virtual void deserialize (ByteBuffer &buf)
 
void transmit ()
 Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More...
 
void transmit (std::size_t size)
 Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More...
 

Public Attributes

uint32_t _character_id { 0 }
 

Additional Inherited Members

- Protected Attributes inherited from Horizon::Base::NetworkPacket< CharSession >
ByteBuffer _buffer
 Buffer storage facility for the packet stream. More...
 
uint16_t _packet_id
 ID of the network packet. More...
 

Detailed Description

Main object for the aegis packet: CH_DELETE_CHAR3_CANCEL.

Constructor & Destructor Documentation

◆ CH_DELETE_CHAR3_CANCEL()

Horizon::Char::CH_DELETE_CHAR3_CANCEL::CH_DELETE_CHAR3_CANCEL ( std::shared_ptr< CharSession s)
inline
303 : NetworkPacket<CharSession>(ID_CH_DELETE_CHAR3_CANCEL, s)
304 {}
@ ID_CH_DELETE_CHAR3_CANCEL
Definition: HandledPackets.hpp:284

◆ ~CH_DELETE_CHAR3_CANCEL()

virtual Horizon::Char::CH_DELETE_CHAR3_CANCEL::~CH_DELETE_CHAR3_CANCEL ( )
inlinevirtual
305{}

Member Function Documentation

◆ deserialize()

void CH_DELETE_CHAR3_CANCEL::deserialize ( ByteBuffer buf)
virtual

Reimplemented from Horizon::Base::NetworkPacket< CharSession >.

190{
191 buf >> _packet_id;
193}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59
uint32_t _character_id
Definition: HandledPackets.hpp:311

References _character_id, Horizon::Base::NetworkPacket< CharSession >::_packet_id, and Horizon::Base::NetworkPacket< CharSession >::buf().

Referenced by handle().

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

◆ handle()

void CH_DELETE_CHAR3_CANCEL::handle ( ByteBuffer &&  buf)
virtual

CH_DELETE_CHAR3_CANCEL.

Reimplemented from Horizon::Base::NetworkPacket< CharSession >.

184{
186 get_session()->clif()->character_delete_cancel(_character_id);
187}
std::shared_ptr< CharSession > get_session()
Retrieves the session from this handler instance.
Definition: NetworkPacket.hpp:65
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:189

References _character_id, Horizon::Base::NetworkPacket< CharSession >::buf(), deserialize(), and Horizon::Base::NetworkPacket< CharSession >::get_session().

+ Here is the call graph for this function:

Member Data Documentation

◆ _character_id

uint32_t Horizon::Char::CH_DELETE_CHAR3_CANCEL::_character_id { 0 }

Referenced by deserialize(), and handle().


The documentation for this class was generated from the following files: