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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_SPRITE_CHANGE2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_SPRITE_CHANGE2 ()
 
void deliver (int32_t guid, unit_appearance_type look_type, int32_t value, int32_t value2)
 ZC_SPRITE_CHANGE2. 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

int32_t _guid {0}
 
int8_t _look_type {0}
 
int32_t _value {0}
 
int32_t _value2 {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_SPRITE_CHANGE2.

Constructor & Destructor Documentation

◆ ZC_SPRITE_CHANGE2()

Horizon::Zone::ZC_SPRITE_CHANGE2::ZC_SPRITE_CHANGE2 ( std::shared_ptr< ZoneSession s)
inline
43724 : NetworkPacket<ZoneSession>(ID_ZC_SPRITE_CHANGE2, s)
43725 {}
@ ID_ZC_SPRITE_CHANGE2
Definition: TransmittedPackets.hpp:43697

◆ ~ZC_SPRITE_CHANGE2()

virtual Horizon::Zone::ZC_SPRITE_CHANGE2::~ZC_SPRITE_CHANGE2 ( )
inlinevirtual
43726{}

Member Function Documentation

◆ deliver()

void ZC_SPRITE_CHANGE2::deliver ( int32_t  guid,
unit_appearance_type  look_type,
int32_t  value,
int32_t  value2 
)

ZC_SPRITE_CHANGE2.

3056{
3057 _guid = guid;
3058 _look_type = (int8_t) look_type;
3059 _value = value;
3060 _value2 = value2;
3061
3062 serialize();
3063 transmit();
3064}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:3066
int32_t _guid
Definition: TransmittedPackets.hpp:43733
int32_t _value
Definition: TransmittedPackets.hpp:43739
int32_t _value2
Definition: TransmittedPackets.hpp:43740
int8_t _look_type
Definition: TransmittedPackets.hpp:43734

References _guid, _look_type, _value, _value2, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

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

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

◆ serialize()

ByteBuffer & ZC_SPRITE_CHANGE2::serialize ( )
3067{
3068 buf() << _packet_id;
3069 buf() << _guid;
3070 buf() << _look_type;
3071 buf() << _value;
3072 buf() << _value2;
3073 return buf();
3074}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _guid, _look_type, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _value, _value2, 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

◆ _guid

int32_t Horizon::Zone::ZC_SPRITE_CHANGE2::_guid {0}

Referenced by deliver(), and serialize().

◆ _look_type

int8_t Horizon::Zone::ZC_SPRITE_CHANGE2::_look_type {0}

Referenced by deliver(), and serialize().

◆ _value

int32_t Horizon::Zone::ZC_SPRITE_CHANGE2::_value {0}

Referenced by deliver(), and serialize().

◆ _value2

int32_t Horizon::Zone::ZC_SPRITE_CHANGE2::_value2 {0}

Referenced by deliver(), and serialize().


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