Horizon Official Technical Documentation
|
|
Main object for the aegis packet: HC_ACCEPT_ENTER. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
HC_ACCEPT_ENTER (std::shared_ptr< CharSession > s) | |
virtual | ~HC_ACCEPT_ENTER () |
bool | prepare (uint32_t account_id, uint8_t max_char_slots, uint8_t permitted_slots, uint8_t total_premium_slots) |
HC_ACCEPT_ENTER. More... | |
void | deliver () |
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 | |
uint16_t | _packet_length { 24 } |
uint8_t | _max_char_slots { MAX_CHARACTER_SLOTS } |
uint8_t | _permitted_slots { MAX_CHARACTER_SLOTS } |
uint8_t | _total_premium_slots { MAX_CHARACTER_SLOTS } |
uint8_t | _unknown_bytes [20] { 0 } |
20 Unknown bytes. More... | |
std::vector< s_hc_character_list_data > | _characters |
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_ENTER.
|
inline |
|
inlinevirtual |
void HC_ACCEPT_ENTER::deliver | ( | ) |
References Horizon::Base::NetworkPacket< CharSession >::transmit().
Referenced by Horizon::Char::CharClientInterface::authorize_new_connection().
bool HC_ACCEPT_ENTER::prepare | ( | uint32_t | account_id, |
uint8_t | max_char_slots, | ||
uint8_t | permitted_slots, | ||
uint8_t | total_premium_slots | ||
) |
< 0
< 8
< 16
< 20 Probably OPT1 / 2
< 24
< 28
< 32
< 36
< 40
< 42
< 46
< 50
< 52
< 54
< 56
< 58
< 60 p->body in hercules.
< 62 OPTION_* in hercules.
< 64
< 66
< 68
< 70
< 72
< 74
< 76
< 78
< 80
< 104
< 110
< 112
< 114
< 130
< 134
< 138
< 142 1: Displays "Addon" on side-bar.
< 146 0: Female, 1: Male, 99: Account-based.
References s_hc_character_list_data::_agility, s_hc_character_list_data::_base_experience, s_hc_character_list_data::_base_level, s_hc_character_list_data::_body_state, s_hc_character_list_data::_char_slot, s_hc_character_list_data::_character_id, _characters, s_hc_character_list_data::_clothes_color_id, s_hc_character_list_data::_dexterity, s_hc_character_list_data::_hair_color_id, s_hc_character_list_data::_hair_view_id, s_hc_character_list_data::_head_bottom_view_id, s_hc_character_list_data::_head_mid_view_id, s_hc_character_list_data::_head_top_view_id, s_hc_character_list_data::_honor, s_hc_character_list_data::_hp, s_hc_character_list_data::_intelligence, s_hc_character_list_data::_job_experience, s_hc_character_list_data::_job_id, s_hc_character_list_data::_job_level, s_hc_character_list_data::_luck, _max_char_slots, s_hc_character_list_data::_maximum_hp, s_hc_character_list_data::_maximum_sp, s_hc_character_list_data::_name, Horizon::Base::NetworkPacket< CharSession >::_packet_id, _packet_length, _permitted_slots, s_hc_character_list_data::_sc_opt1, s_hc_character_list_data::_sc_opt2, s_hc_character_list_data::_shield_id, s_hc_character_list_data::_skill_point, s_hc_character_list_data::_sp, s_hc_character_list_data::_status_points, s_hc_character_list_data::_strength, _total_premium_slots, _unknown_bytes, s_hc_character_list_data::_virtue, s_hc_character_list_data::_vitality, s_hc_character_list_data::_walk_speed, s_hc_character_list_data::_weapon_view_id, s_hc_character_list_data::_zeny, ByteBuffer::append(), Horizon::Base::NetworkPacket< CharSession >::buf(), DEFAULT_MOVEMENT_SPEED, HLog, MAP_NAME_LENGTH_EXT, MAX_UNIT_NAME_LENGTH, and sChar.
Referenced by Horizon::Char::CharClientInterface::authorize_new_connection().
ByteBuffer & HC_ACCEPT_ENTER::serialize | ( | ) |
References Horizon::Base::NetworkPacket< CharSession >::buf().
std::vector<s_hc_character_list_data> Horizon::Char::HC_ACCEPT_ENTER::_characters |
Referenced by prepare().
uint8_t Horizon::Char::HC_ACCEPT_ENTER::_max_char_slots { MAX_CHARACTER_SLOTS } |
Referenced by prepare().
uint16_t Horizon::Char::HC_ACCEPT_ENTER::_packet_length { 24 } |
Referenced by prepare().
uint8_t Horizon::Char::HC_ACCEPT_ENTER::_permitted_slots { MAX_CHARACTER_SLOTS } |
Referenced by prepare().
uint8_t Horizon::Char::HC_ACCEPT_ENTER::_total_premium_slots { MAX_CHARACTER_SLOTS } |
Referenced by prepare().
uint8_t Horizon::Char::HC_ACCEPT_ENTER::_unknown_bytes[20] { 0 } |
20 Unknown bytes.
Referenced by prepare().