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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_NOTIFY_SKILL2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_NOTIFY_SKILL2 ()
 
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, int32_t damage, int16 count, enum zc_notify_act_3_action_types action_type)
 ZC_NOTIFY_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

uint16_t _skill_id
 
uint32_t _source_id
 
uint32_t _target_id
 
uint32_t _start_time
 
int32_t _attack_motion
 
int32_t _attacked_motion
 
int32_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_SKILL2.

Constructor & Destructor Documentation

◆ ZC_NOTIFY_SKILL2()

Horizon::Zone::ZC_NOTIFY_SKILL2::ZC_NOTIFY_SKILL2 ( std::shared_ptr< ZoneSession s)
inline
34601 : NetworkPacket<ZoneSession>(ID_ZC_NOTIFY_SKILL2, s)
34602 {}
@ ID_ZC_NOTIFY_SKILL2
Definition: TransmittedPackets.hpp:34574

◆ ~ZC_NOTIFY_SKILL2()

virtual Horizon::Zone::ZC_NOTIFY_SKILL2::~ZC_NOTIFY_SKILL2 ( )
inlinevirtual
34603{}

Member Function Documentation

◆ deliver()

void ZC_NOTIFY_SKILL2::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,
int32_t  damage,
int16  count,
enum zc_notify_act_3_action_types  action_type 
)

ZC_NOTIFY_SKILL2.

2189{
2190 _skill_id = skill_id;
2191 _source_id = source;
2192 _target_id = target;
2193 _start_time = start_time;
2194 _attack_motion = attack_motion;
2195 _attacked_motion = attacked_motion;
2196 _damage = damage;
2197 _level = skill_lv;
2198 _count = count;
2199 _action = action_type;
2200}
int32_t _damage
Definition: TransmittedPackets.hpp:34615
uint32_t _source_id
Definition: TransmittedPackets.hpp:34610
int32_t _attack_motion
Definition: TransmittedPackets.hpp:34613
uint16_t _skill_id
Definition: TransmittedPackets.hpp:34609
int8_t _action
Definition: TransmittedPackets.hpp:34618
uint32_t _target_id
Definition: TransmittedPackets.hpp:34611
uint32_t _start_time
Definition: TransmittedPackets.hpp:34612
int16_t _count
Definition: TransmittedPackets.hpp:34617
int32_t _attacked_motion
Definition: TransmittedPackets.hpp:34614
int16_t _level
Definition: TransmittedPackets.hpp:34616
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_SKILL2::serialize ( )
2202{
2203 buf() << _packet_id;
2204 buf() << _skill_id;
2205 buf() << _source_id;
2206 buf() << _target_id;
2207 buf() << _start_time;
2208 buf() << _attack_motion;
2209 buf() << _attacked_motion;
2210 buf() << _damage;
2211 buf() << _level;
2212 buf() << _count;
2213 buf() << _action;
2214 return buf();
2215}
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().

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

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

Member Data Documentation

◆ _action

int8_t Horizon::Zone::ZC_NOTIFY_SKILL2::_action

◆ _attack_motion

int32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_attack_motion

◆ _attacked_motion

int32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_attacked_motion

◆ _count

int16_t Horizon::Zone::ZC_NOTIFY_SKILL2::_count

◆ _damage

int32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_damage

◆ _level

int16_t Horizon::Zone::ZC_NOTIFY_SKILL2::_level

◆ _skill_id

uint16_t Horizon::Zone::ZC_NOTIFY_SKILL2::_skill_id

◆ _source_id

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_source_id

◆ _start_time

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_start_time

◆ _target_id

uint32_t Horizon::Zone::ZC_NOTIFY_SKILL2::_target_id

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