Horizon Official Technical Documentation
|
|
Main object for the aegis packet: HC_ACCEPT_MAKECHAR. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
HC_ACCEPT_MAKECHAR (std::shared_ptr< CharSession > s) | |
virtual | ~HC_ACCEPT_MAKECHAR () |
void | deliver (uint32_t char_id, uint32_t start_zeny, std::string map_name, std::string name, uint8_t slot, uint32_t hair_color, uint32_t hair_style, uint32_t job_class, uint8_t gender) |
HC_ACCEPT_MAKECHAR. More... | |
ByteBuffer & | serialize () |
![]() | |
NetworkPacket (uint16_t packet_id, std::shared_ptr< CharSession > s) | |
virtual | ~NetworkPacket () |
void | set_packet_id (uint16_t id) |
uint16_t | get_packet_id () |
ByteBuffer & | buf () |
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 | |
s_hc_character_list_data | _c |
Additional Inherited Members | |
![]() | |
ByteBuffer | _buffer |
Buffer storage facility for the packet stream. More... | |
uint16_t | _packet_id |
ID of the network packet. More... | |
Main object for the aegis packet: HC_ACCEPT_MAKECHAR.
|
inline |
|
inlinevirtual |
void HC_ACCEPT_MAKECHAR::deliver | ( | uint32_t | char_id, |
uint32_t | start_zeny, | ||
std::string | map_name, | ||
std::string | name, | ||
uint8_t | slot, | ||
uint32_t | hair_color, | ||
uint32_t | hair_style, | ||
uint32_t | job_class, | ||
uint8_t | gender | ||
) |
< len: 16
< 146 0: Female, 1: Male, 99: Account-based.
References _c, s_hc_character_list_data::_char_slot, s_hc_character_list_data::_character_id, s_hc_character_list_data::_hair_view_id, s_hc_character_list_data::_hp, s_hc_character_list_data::_job_id, s_hc_character_list_data::_maximum_hp, s_hc_character_list_data::_maximum_sp, s_hc_character_list_data::_name, s_hc_character_list_data::_sp, s_hc_character_list_data::_status_points, s_hc_character_list_data::_walk_speed, s_hc_character_list_data::_zeny, DEFAULT_MOVEMENT_SPEED, MAP_NAME_LENGTH_EXT, MAX_UNIT_NAME_LENGTH, serialize(), and Horizon::Base::NetworkPacket< CharSession >::transmit().
Referenced by Horizon::Char::CharClientInterface::make_new_character().
ByteBuffer & HC_ACCEPT_MAKECHAR::serialize | ( | ) |
References _c, Horizon::Base::NetworkPacket< CharSession >::_packet_id, ByteBuffer::append(), and Horizon::Base::NetworkPacket< CharSession >::buf().
Referenced by deliver().
s_hc_character_list_data Horizon::Char::HC_ACCEPT_MAKECHAR::_c |
Referenced by deliver(), and serialize().