Horizon Official Technical Documentation
|
|
Main object for the aegis packet: ZC_ITEM_FALL_ENTRY. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
ZC_ITEM_FALL_ENTRY (std::shared_ptr< ZoneSession > s) | |
virtual | ~ZC_ITEM_FALL_ENTRY () |
void | deliver (int guid, int item_id, int type, int identified, int x, int y, int x_area, int y_area, int amount) |
ZC_ITEM_FALL_ENTRY. More... | |
void | deliver (int guid, int item_id, int type, int identified, int x, int y, int x_area, int y_area, int amount, int show_drop_effect, int drop_effect_mode) |
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 | |
uint32_t | _guid {0} |
uint32_t | _item_id {0} |
uint16_t | _type { 0 } |
uint8_t | _is_identified { 0 } |
int16_t | _x { 0 } |
int16_t | _y { 0 } |
uint8_t | _x_area { 0 } |
uint8_t | _y_area { 0 } |
int16_t | _amount { 0 } |
int8_t | _show_drop_effect { 0 } |
int16_t | _drop_effect_mode { 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_ITEM_FALL_ENTRY.
|
inline |
|
inlinevirtual |
void ZC_ITEM_FALL_ENTRY::deliver | ( | int | guid, |
int | item_id, | ||
int | type, | ||
int | identified, | ||
int | x, | ||
int | y, | ||
int | x_area, | ||
int | y_area, | ||
int | amount | ||
) |
References deliver().
Referenced by deliver(), and Horizon::Zone::ZoneClientInterface::notify_item_drop().
void ZC_ITEM_FALL_ENTRY::deliver | ( | int | guid, |
int | item_id, | ||
int | type, | ||
int | identified, | ||
int | x, | ||
int | y, | ||
int | x_area, | ||
int | y_area, | ||
int | amount, | ||
int | show_drop_effect, | ||
int | drop_effect_mode | ||
) |
References _amount, _drop_effect_mode, _guid, _is_identified, _item_id, _show_drop_effect, _type, _x, _x_area, _y, _y_area, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().
ByteBuffer & ZC_ITEM_FALL_ENTRY::serialize | ( | ) |
References _amount, _drop_effect_mode, _guid, _is_identified, _item_id, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _show_drop_effect, _type, _x, _x_area, _y, _y_area, and Horizon::Base::NetworkPacket< ZoneSession >::buf().
Referenced by deliver().
int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_amount { 0 } |
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_drop_effect_mode { 0 } |
Referenced by deliver(), and serialize().
uint32_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_guid {0} |
Referenced by deliver(), and serialize().
uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_is_identified { 0 } |
Referenced by deliver(), and serialize().
uint32_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_item_id {0} |
Referenced by deliver(), and serialize().
int8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_show_drop_effect { 0 } |
Referenced by deliver(), and serialize().
uint16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_type { 0 } |
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_x { 0 } |
Referenced by deliver(), and serialize().
uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_x_area { 0 } |
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_y { 0 } |
Referenced by deliver(), and serialize().
uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_y_area { 0 } |
Referenced by deliver(), and serialize().