Horizon Official Technical Documentation
|
|
Main object for the aegis packet: ZC_ITEM_PICKUP_ACK_V7. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
ZC_ITEM_PICKUP_ACK_V7 (std::shared_ptr< ZoneSession > s) | |
virtual | ~ZC_ITEM_PICKUP_ACK_V7 () |
void | deliver (struct item_entry_data id, int16_t amount, item_inventory_addition_notif_type result) |
ZC_ITEM_PICKUP_ACK_V7. More... | |
ByteBuffer & | serialize () |
![]() | |
NetworkPacket (uint16_t packet_id, std::shared_ptr< ZoneSession > s) | |
virtual | ~NetworkPacket () |
void | set_packet_id (uint16_t id) |
uint16_t | get_packet_id () |
ByteBuffer & | buf () |
std::shared_ptr< ZoneSession > | 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 | |
struct item_entry_data | _id |
int16_t | _amount |
item_inventory_addition_notif_type | _result |
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: ZC_ITEM_PICKUP_ACK_V7.
|
inline |
|
inlinevirtual |
void ZC_ITEM_PICKUP_ACK_V7::deliver | ( | struct item_entry_data | id, |
int16_t | amount, | ||
item_inventory_addition_notif_type | result | ||
) |
References _amount, _id, _result, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().
Referenced by Horizon::Zone::ZoneClientInterface::notify_pickup_item().
ByteBuffer & ZC_ITEM_PICKUP_ACK_V7::serialize | ( | ) |
References _amount, _id, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _result, item_entry_data::actual_equip_location_mask, item_entry_data::bind_type, Horizon::Base::NetworkPacket< ZoneSession >::buf(), item_entry_data::hire_expire_date, item_entry_data::index, item_entry_data::options::index, item_entry_data::info, item_entry_data::inventory, item_entry_data::item_entry_info::is_broken, item_entry_data::item_entry_info::is_favorite, item_entry_data::item_entry_info::is_identified, item_entry_data::item_id, MAX_ITEM_OPTIONS, MAX_ITEM_SLOTS, item_entry_data::option_data, item_entry_data::options::param, item_entry_data::refine_level, item_entry_data::slot_item_id, item_entry_data::sprite_id, item_entry_data::type, and item_entry_data::options::value.
Referenced by deliver().
int16_t Horizon::Zone::ZC_ITEM_PICKUP_ACK_V7::_amount |
Referenced by deliver(), and serialize().
struct item_entry_data Horizon::Zone::ZC_ITEM_PICKUP_ACK_V7::_id |
Referenced by deliver(), and serialize().
item_inventory_addition_notif_type Horizon::Zone::ZC_ITEM_PICKUP_ACK_V7::_result |
Referenced by deliver(), and serialize().