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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_USE_SKILL2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_USE_SKILL2 ()
 
void deliver (int skill_id, int heal_amount, int target_guid, zc_use_skill2_result_type result)
 ZC_USE_SKILL2. More...
 
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

int16_t _skill_id { 0 }
 
int32_t _heal_amount { 0 }
 
int32_t _target_guid { 0 }
 
int8_t _result { 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_USE_SKILL2.

Constructor & Destructor Documentation

◆ ZC_USE_SKILL2()

Horizon::Zone::ZC_USE_SKILL2::ZC_USE_SKILL2 ( std::shared_ptr< ZoneSession s)
inline
46473 : NetworkPacket<ZoneSession>(ID_ZC_USE_SKILL2, s)
46474 {}
@ ID_ZC_USE_SKILL2
Definition: TransmittedPackets.hpp:46449

◆ ~ZC_USE_SKILL2()

virtual Horizon::Zone::ZC_USE_SKILL2::~ZC_USE_SKILL2 ( )
inlinevirtual
46475{}

Member Function Documentation

◆ deliver()

void ZC_USE_SKILL2::deliver ( int  skill_id,
int  heal_amount,
int  target_guid,
zc_use_skill2_result_type  result 
)

ZC_USE_SKILL2.

5047{
5048 _skill_id = skill_id;
5049 _heal_amount = heal_amount;
5050 _target_guid = target_guid;
5051 _result = (int) result;
5052
5053 serialize();
5054 transmit();
5055}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int32_t _target_guid
Definition: TransmittedPackets.hpp:46483
int16_t _skill_id
Definition: TransmittedPackets.hpp:46481
int8_t _result
Definition: TransmittedPackets.hpp:46484
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:5057
int32_t _heal_amount
Definition: TransmittedPackets.hpp:46482

References _heal_amount, _result, _skill_id, _target_guid, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_USE_SKILL2::serialize ( )
5058{
5059 buf() << _packet_id;
5060 buf() << _skill_id;
5061 buf() << _heal_amount;
5062 buf() << _target_guid;
5063 buf() << _result;
5064 return buf();
5065}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _heal_amount, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _result, _skill_id, _target_guid, and Horizon::Base::NetworkPacket< ZoneSession >::buf().

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

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

Member Data Documentation

◆ _heal_amount

int32_t Horizon::Zone::ZC_USE_SKILL2::_heal_amount { 0 }

◆ _result

int8_t Horizon::Zone::ZC_USE_SKILL2::_result { 0 }

◆ _skill_id

int16_t Horizon::Zone::ZC_USE_SKILL2::_skill_id { 0 }

◆ _target_guid

int32_t Horizon::Zone::ZC_USE_SKILL2::_target_guid { 0 }

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