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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 HC_DELETE_CHAR3_RESERVED (std::shared_ptr< CharSession > s)
 
virtual ~HC_DELETE_CHAR3_RESERVED ()
 
void deliver (uint32_t char_id, character_delete_result res, uint32_t date)
 HC_DELETE_CHAR3_RESERVED. More...
 
ByteBufferserialize ()
 
- 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 }
 
character_delete_result _result { CHAR_DEL_RESULT_UNKNOWN }
 
uint32_t _deletion_date { 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: HC_DELETE_CHAR3_RESERVED.

Constructor & Destructor Documentation

◆ HC_DELETE_CHAR3_RESERVED()

Horizon::Char::HC_DELETE_CHAR3_RESERVED::HC_DELETE_CHAR3_RESERVED ( std::shared_ptr< CharSession s)
inline
705 : NetworkPacket<CharSession>(ID_HC_DELETE_CHAR3_RESERVED, s)
706 {}
@ ID_HC_DELETE_CHAR3_RESERVED
Definition: TransmittedPackets.hpp:686

◆ ~HC_DELETE_CHAR3_RESERVED()

virtual Horizon::Char::HC_DELETE_CHAR3_RESERVED::~HC_DELETE_CHAR3_RESERVED ( )
inlinevirtual
707{}

Member Function Documentation

◆ deliver()

void HC_DELETE_CHAR3_RESERVED::deliver ( uint32_t  char_id,
character_delete_result  res,
uint32_t  date 
)

HC_DELETE_CHAR3_RESERVED.

416{
417 _character_id = char_id;
418 _result = res;
419 _deletion_date = date;
420
421 serialize();
422 transmit();
423}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
uint32_t _character_id
Definition: TransmittedPackets.hpp:713
uint32_t _deletion_date
Definition: TransmittedPackets.hpp:715
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:425
character_delete_result _result
Definition: TransmittedPackets.hpp:714

References _character_id, _deletion_date, _result, serialize(), and Horizon::Base::NetworkPacket< CharSession >::transmit().

Referenced by Horizon::Char::CharClientInterface::character_delete_reserve().

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

◆ serialize()

ByteBuffer & HC_DELETE_CHAR3_RESERVED::serialize ( )
426{
427 buf() << _packet_id;
428 buf() << _character_id;
429 buf() << _result;
430 buf() << _deletion_date;
431
432 return buf();
433}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

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

Referenced by deliver().

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

Member Data Documentation

◆ _character_id

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

Referenced by deliver(), and serialize().

◆ _deletion_date

uint32_t Horizon::Char::HC_DELETE_CHAR3_RESERVED::_deletion_date { 0 }

Referenced by deliver(), and serialize().

◆ _result

character_delete_result Horizon::Char::HC_DELETE_CHAR3_RESERVED::_result { CHAR_DEL_RESULT_UNKNOWN }

Referenced by deliver(), and serialize().


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