Horizon Official Technical Documentation
Horizon::Zone::ZC_ITEM_FALL_ENTRY Class Reference

Main object for the aegis packet: ZC_ITEM_FALL_ENTRY. More...

#include <TransmittedPackets.hpp>

+ Inheritance diagram for Horizon::Zone::ZC_ITEM_FALL_ENTRY:
+ Collaboration diagram for Horizon::Zone::ZC_ITEM_FALL_ENTRY:

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)
 
ByteBufferserialize ()
 
- Public Member Functions inherited from Horizon::Base::NetworkPacket< ZoneSession >
 NetworkPacket (uint16_t packet_id, std::shared_ptr< ZoneSession > s)
 
virtual ~NetworkPacket ()
 
void set_packet_id (uint16_t id)
 
uint16_t get_packet_id ()
 
ByteBufferbuf ()
 
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

- Protected Attributes inherited from Horizon::Base::NetworkPacket< ZoneSession >
ByteBuffer _buffer
 Buffer storage facility for the packet stream. More...
 
uint16_t _packet_id
 ID of the network packet. More...
 

Detailed Description

Main object for the aegis packet: ZC_ITEM_FALL_ENTRY.

Constructor & Destructor Documentation

◆ ZC_ITEM_FALL_ENTRY()

Horizon::Zone::ZC_ITEM_FALL_ENTRY::ZC_ITEM_FALL_ENTRY ( std::shared_ptr< ZoneSession s)
inline
28911 : NetworkPacket<ZoneSession>(ID_ZC_ITEM_FALL_ENTRY, s)
28912 {}
@ ID_ZC_ITEM_FALL_ENTRY
Definition: TransmittedPackets.hpp:28875

◆ ~ZC_ITEM_FALL_ENTRY()

virtual Horizon::Zone::ZC_ITEM_FALL_ENTRY::~ZC_ITEM_FALL_ENTRY ( )
inlinevirtual
28913{}

Member Function Documentation

◆ deliver() [1/2]

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 
)

ZC_ITEM_FALL_ENTRY.

1562{
1563 deliver(guid, item_id, type, identified, x, y, x_area, y_area, amount, 0, 0);
1564}
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.
Definition: TransmittedPackets.cpp:1561

References deliver().

Referenced by deliver(), and Horizon::Zone::ZoneClientInterface::notify_item_drop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deliver() [2/2]

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 
)
1566{
1567 _guid = guid;
1568 _item_id = item_id;
1569 _type = type;
1570 _is_identified = identified;
1571 _x = x;
1572 _y = y;
1573 _x_area = x_area;
1574 _y_area = y_area;
1575 _amount = amount;
1576 _show_drop_effect = show_drop_effect;
1577 _drop_effect_mode = drop_effect_mode;
1578
1579 serialize();
1580 transmit();
1581}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int16_t _amount
Definition: TransmittedPackets.hpp:28936
uint8_t _x_area
Definition: TransmittedPackets.hpp:28934
int16_t _x
Definition: TransmittedPackets.hpp:28932
uint32_t _item_id
Definition: TransmittedPackets.hpp:28924
uint16_t _type
Definition: TransmittedPackets.hpp:28929
uint32_t _guid
Definition: TransmittedPackets.hpp:28920
int16_t _drop_effect_mode
Definition: TransmittedPackets.hpp:28939
int8_t _show_drop_effect
Definition: TransmittedPackets.hpp:28938
uint8_t _y_area
Definition: TransmittedPackets.hpp:28935
int16_t _y
Definition: TransmittedPackets.hpp:28933
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:1582
uint8_t _is_identified
Definition: TransmittedPackets.hpp:28931

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().

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_ITEM_FALL_ENTRY::serialize ( )
1583{
1584 buf() << _packet_id;
1585 buf() << _guid;
1586 buf() << _item_id;
1587#if PACKET_VERSION >= 20130000 /* not sure of date */
1588 buf() << _type;
1589#endif
1590 buf() << _is_identified;
1591 buf() << _x;
1592 buf() << _y;
1593 buf() << _x_area;
1594 buf() << _y_area;
1595 buf() << _amount;
1596#if (CLIENT_TYPE == 'Z') || (PACKET_VERSION >= 20180418)
1599#endif
1600
1601 return buf();
1602}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _amount

int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_amount { 0 }

Referenced by deliver(), and serialize().

◆ _drop_effect_mode

int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_drop_effect_mode { 0 }

Referenced by deliver(), and serialize().

◆ _guid

uint32_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_guid {0}

Referenced by deliver(), and serialize().

◆ _is_identified

uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_is_identified { 0 }

Referenced by deliver(), and serialize().

◆ _item_id

uint32_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_item_id {0}

Referenced by deliver(), and serialize().

◆ _show_drop_effect

int8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_show_drop_effect { 0 }

Referenced by deliver(), and serialize().

◆ _type

uint16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_type { 0 }

Referenced by deliver(), and serialize().

◆ _x

int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_x { 0 }

Referenced by deliver(), and serialize().

◆ _x_area

uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_x_area { 0 }

Referenced by deliver(), and serialize().

◆ _y

int16_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_y { 0 }

Referenced by deliver(), and serialize().

◆ _y_area

uint8_t Horizon::Zone::ZC_ITEM_FALL_ENTRY::_y_area { 0 }

Referenced by deliver(), and serialize().


The documentation for this class was generated from the following files: