Horizon Official Technical Documentation
|
|
Main object for the aegis packet: ZC_NOTIFY_CARTITEM_COUNTINFO. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
ZC_NOTIFY_CARTITEM_COUNTINFO (std::shared_ptr< ZoneSession > s) | |
virtual | ~ZC_NOTIFY_CARTITEM_COUNTINFO () |
void | deliver (int unique_items, int max_cart_items, int cart_weight, int cart_weight_max) |
ZC_NOTIFY_CARTITEM_COUNTINFO. 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 | |
int16_t | _unique_items { 0 } |
int16_t | _max_cart_items { 0 } |
int32_t | _cart_weight { 0 } |
int32_t | _cart_weight_max { 0 } |
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_NOTIFY_CARTITEM_COUNTINFO.
|
inline |
|
inlinevirtual |
void ZC_NOTIFY_CARTITEM_COUNTINFO::deliver | ( | int | unique_items, |
int | max_cart_items, | ||
int | cart_weight, | ||
int | cart_weight_max | ||
) |
References _cart_weight, _cart_weight_max, _max_cart_items, _unique_items, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().
ByteBuffer & ZC_NOTIFY_CARTITEM_COUNTINFO::serialize | ( | ) |
References _cart_weight, _cart_weight_max, _max_cart_items, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _unique_items, and Horizon::Base::NetworkPacket< ZoneSession >::buf().
Referenced by deliver().
int32_t Horizon::Zone::ZC_NOTIFY_CARTITEM_COUNTINFO::_cart_weight { 0 } |
Referenced by deliver(), and serialize().
int32_t Horizon::Zone::ZC_NOTIFY_CARTITEM_COUNTINFO::_cart_weight_max { 0 } |
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_NOTIFY_CARTITEM_COUNTINFO::_max_cart_items { 0 } |
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_NOTIFY_CARTITEM_COUNTINFO::_unique_items { 0 } |
Referenced by deliver(), and serialize().