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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_NOTIFY_SKILL (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_NOTIFY_SKILL ()
 
void deliver (uint32_t source, uint32_t target, uint16_t skill_id, uint16_t skill_lv, uint32_t start_time, int32_t attack_motion, int32_t attacked_motion, int16_t damage, int16 count, enum zc_notify_act_3_action_types action_type)
 ZC_NOTIFY_SKILL. 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

uint16_t _skill_id
 
uint32_t _source_id
 
uint32_t _target_id
 
uint32_t _start_time
 
int32_t _attack_motion
 
int32_t _attacked_motion
 
int16_t _damage
 
int16_t _level
 
int16_t _count
 
int8_t _action
 

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_NOTIFY_SKILL.

Constructor & Destructor Documentation

◆ ZC_NOTIFY_SKILL()

Horizon::Zone::ZC_NOTIFY_SKILL::ZC_NOTIFY_SKILL ( std::shared_ptr< ZoneSession s)
inline
34545 : NetworkPacket<ZoneSession>(ID_ZC_NOTIFY_SKILL, s)
34546 {}
@ ID_ZC_NOTIFY_SKILL
Definition: TransmittedPackets.hpp:34518

◆ ~ZC_NOTIFY_SKILL()

virtual Horizon::Zone::ZC_NOTIFY_SKILL::~ZC_NOTIFY_SKILL ( )
inlinevirtual
34547{}

Member Function Documentation

◆ deliver()

void ZC_NOTIFY_SKILL::deliver ( uint32_t  source,
uint32_t  target,
uint16_t  skill_id,
uint16_t  skill_lv,
uint32_t  start_time,
int32_t  attack_motion,
int32_t  attacked_motion,
int16_t  damage,
int16  count,
enum zc_notify_act_3_action_types  action_type 
)

ZC_NOTIFY_SKILL.

2158{
2159 _skill_id = skill_id;
2160 _source_id = source;
2161 _target_id = target;
2162 _start_time = start_time;
2163 _attack_motion = attack_motion;
2164 _attacked_motion = attacked_motion;
2165 _damage = damage;
2166 _level = skill_lv;
2167 _count = count;
2168 _action = action_type;
2169}
int16_t _count
Definition: TransmittedPackets.hpp:34561
uint32_t _start_time
Definition: TransmittedPackets.hpp:34556
uint32_t _source_id
Definition: TransmittedPackets.hpp:34554
uint16_t _skill_id
Definition: TransmittedPackets.hpp:34553
int32_t _attack_motion
Definition: TransmittedPackets.hpp:34557
int8_t _action
Definition: TransmittedPackets.hpp:34562
int32_t _attacked_motion
Definition: TransmittedPackets.hpp:34558
int16_t _level
Definition: TransmittedPackets.hpp:34560
int16_t _damage
Definition: TransmittedPackets.hpp:34559
uint32_t _target_id
Definition: TransmittedPackets.hpp:34555
size_t count(GridTypeListContainer< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: GridReferenceContainer.hpp:100

References _action, _attack_motion, _attacked_motion, _count, _damage, _level, _skill_id, _source_id, _start_time, _target_id, and GridTypeListIterator::count().

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_NOTIFY_SKILL::serialize ( )
2171{
2172 buf() << _packet_id;
2173 buf() << _skill_id;
2174 buf() << _source_id;
2175 buf() << _target_id;
2176 buf() << _start_time;
2177 buf() << _attack_motion;
2178 buf() << _attacked_motion;
2179 buf() << _damage;
2180 buf() << _level;
2181 buf() << _count;
2182 buf() << _action;
2183 return buf();
2184}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _action, _attack_motion, _attacked_motion, _count, _damage, _level, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _skill_id, _source_id, _start_time, _target_id, and Horizon::Base::NetworkPacket< ZoneSession >::buf().

+ Here is the call graph for this function:

Member Data Documentation

◆ _action

int8_t Horizon::Zone::ZC_NOTIFY_SKILL::_action

Referenced by deliver(), and serialize().

◆ _attack_motion

int32_t Horizon::Zone::ZC_NOTIFY_SKILL::_attack_motion

Referenced by deliver(), and serialize().

◆ _attacked_motion

int32_t Horizon::Zone::ZC_NOTIFY_SKILL::_attacked_motion

Referenced by deliver(), and serialize().

◆ _count

int16_t Horizon::Zone::ZC_NOTIFY_SKILL::_count

Referenced by deliver(), and serialize().

◆ _damage

int16_t Horizon::Zone::ZC_NOTIFY_SKILL::_damage

Referenced by deliver(), and serialize().

◆ _level

int16_t Horizon::Zone::ZC_NOTIFY_SKILL::_level

Referenced by deliver(), and serialize().

◆ _skill_id

uint16_t Horizon::Zone::ZC_NOTIFY_SKILL::_skill_id

Referenced by deliver(), and serialize().

◆ _source_id

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL::_source_id

Referenced by deliver(), and serialize().

◆ _start_time

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL::_start_time

Referenced by deliver(), and serialize().

◆ _target_id

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL::_target_id

Referenced by deliver(), and serialize().


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