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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_SKILLINFO_UPDATE (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_SKILLINFO_UPDATE ()
 
void deliver (int16_t skill_id, int16_t skill_level, int16_t sp_cost, int16_t range, bool upgradeable)
 ZC_SKILLINFO_UPDATE. 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}
 
int16_t _skill_level {0}
 
int16_t _sp_cost {0}
 
int16_t _range {0}
 
int8_t _upgradeable {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_SKILLINFO_UPDATE.

Constructor & Destructor Documentation

◆ ZC_SKILLINFO_UPDATE()

Horizon::Zone::ZC_SKILLINFO_UPDATE::ZC_SKILLINFO_UPDATE ( std::shared_ptr< ZoneSession s)
inline
42850 : NetworkPacket<ZoneSession>(ID_ZC_SKILLINFO_UPDATE, s)
42851 {}
@ ID_ZC_SKILLINFO_UPDATE
Definition: TransmittedPackets.hpp:42823

◆ ~ZC_SKILLINFO_UPDATE()

virtual Horizon::Zone::ZC_SKILLINFO_UPDATE::~ZC_SKILLINFO_UPDATE ( )
inlinevirtual
42852{}

Member Function Documentation

◆ deliver()

void ZC_SKILLINFO_UPDATE::deliver ( int16_t  skill_id,
int16_t  skill_level,
int16_t  sp_cost,
int16_t  range,
bool  upgradeable 
)

ZC_SKILLINFO_UPDATE.

2967{
2968 _skill_id = skill_id;
2969 _skill_level = skill_level;
2970 _sp_cost = sp_cost;
2971 _range = range;
2972 _upgradeable = upgradeable ? 1 : 0;
2973
2974 serialize();
2975 transmit();
2976}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int16_t _range
Definition: TransmittedPackets.hpp:42861
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:2978
int8_t _upgradeable
Definition: TransmittedPackets.hpp:42862
int16_t _skill_level
Definition: TransmittedPackets.hpp:42859
int16_t _skill_id
Definition: TransmittedPackets.hpp:42858
int16_t _sp_cost
Definition: TransmittedPackets.hpp:42860

References _range, _skill_id, _skill_level, _sp_cost, _upgradeable, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

Referenced by Horizon::Zone::ZoneClientInterface::upgrade_skill_level().

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

◆ serialize()

ByteBuffer & ZC_SKILLINFO_UPDATE::serialize ( )
2979{
2980 buf() << _packet_id;
2981 buf() << _skill_id;
2982 buf() << _skill_level;
2983 buf() << _sp_cost;
2984 buf() << _range;
2985 buf() << _upgradeable;
2986 return buf();
2987}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _range, _skill_id, _skill_level, _sp_cost, _upgradeable, 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

◆ _range

int16_t Horizon::Zone::ZC_SKILLINFO_UPDATE::_range {0}

Referenced by deliver(), and serialize().

◆ _skill_id

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

Referenced by deliver(), and serialize().

◆ _skill_level

int16_t Horizon::Zone::ZC_SKILLINFO_UPDATE::_skill_level {0}

Referenced by deliver(), and serialize().

◆ _sp_cost

int16_t Horizon::Zone::ZC_SKILLINFO_UPDATE::_sp_cost {0}

Referenced by deliver(), and serialize().

◆ _upgradeable

int8_t Horizon::Zone::ZC_SKILLINFO_UPDATE::_upgradeable {0}

Referenced by deliver(), and serialize().


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