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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_MSG_STATE_CHANGE2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_MSG_STATE_CHANGE2 ()
 
void deliver (int16_t si_type, int32_t guid, int8_t state, int32_t time_remaining, int32_t val1, int32_t val2, int32_t val3)
 ZC_MSG_STATE_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

int16_t _index {0}
 
int32_t _guid {0}
 
int8_t _state {0}
 
int32_t _time_remaining {0}
 
int32_t _val1 {0}
 
int32_t _val2 {0}
 
int32_t _val3 {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_MSG_STATE_CHANGE2.

Constructor & Destructor Documentation

◆ ZC_MSG_STATE_CHANGE2()

Horizon::Zone::ZC_MSG_STATE_CHANGE2::ZC_MSG_STATE_CHANGE2 ( std::shared_ptr< ZoneSession s)
inline
31407 : NetworkPacket<ZoneSession>(ID_ZC_MSG_STATE_CHANGE2, s)
31408 {}
@ ID_ZC_MSG_STATE_CHANGE2
Definition: TransmittedPackets.hpp:31380

◆ ~ZC_MSG_STATE_CHANGE2()

virtual Horizon::Zone::ZC_MSG_STATE_CHANGE2::~ZC_MSG_STATE_CHANGE2 ( )
inlinevirtual
31409{}

Member Function Documentation

◆ deliver()

void ZC_MSG_STATE_CHANGE2::deliver ( int16_t  si_type,
int32_t  guid,
int8_t  state,
int32_t  time_remaining,
int32_t  val1,
int32_t  val2,
int32_t  val3 
)

ZC_MSG_STATE_CHANGE2.

6563{
6564 _index = si_type;
6565 _guid = guid;
6566 _state = state;
6567 _time_remaining = time_remaining;
6568 _val1 = val1;
6569 _val2 = val2;
6570 _val3 = val3;
6571
6572 serialize();
6573 transmit();
6574}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int16_t _index
Definition: TransmittedPackets.hpp:31415
int32_t _val2
Definition: TransmittedPackets.hpp:31420
int32_t _val3
Definition: TransmittedPackets.hpp:31421
int32_t _val1
Definition: TransmittedPackets.hpp:31419
int32_t _time_remaining
Definition: TransmittedPackets.hpp:31418
int8_t _state
Definition: TransmittedPackets.hpp:31417
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:6576
int32_t _guid
Definition: TransmittedPackets.hpp:31416

References _guid, _index, _state, _time_remaining, _val1, _val2, _val3, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

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

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

◆ serialize()

ByteBuffer & ZC_MSG_STATE_CHANGE2::serialize ( )
6577{
6578 buf() << _packet_id;
6579 buf() << _index;
6580 buf() << _guid;
6581 buf() << _state;
6582 buf() << _time_remaining;
6583 buf() << _val1;
6584 buf() << _val2;
6585 buf() << _val3;
6586
6587 return buf();
6588}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _guid, _index, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _state, _time_remaining, _val1, _val2, _val3, 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_MSG_STATE_CHANGE2::_guid {0}

Referenced by deliver(), and serialize().

◆ _index

int16_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_index {0}

Referenced by deliver(), and serialize().

◆ _state

int8_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_state {0}

Referenced by deliver(), and serialize().

◆ _time_remaining

int32_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_time_remaining {0}

Referenced by deliver(), and serialize().

◆ _val1

int32_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_val1 {0}

Referenced by deliver(), and serialize().

◆ _val2

int32_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_val2 {0}

Referenced by deliver(), and serialize().

◆ _val3

int32_t Horizon::Zone::ZC_MSG_STATE_CHANGE2::_val3 {0}

Referenced by deliver(), and serialize().


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