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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_MAPPROPERTY_R2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_MAPPROPERTY_R2 ()
 
void deliver (zc_map_properties p)
 ZC_MAPPROPERTY_R2. 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 _type {0x28}
 
int32_t _p {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_MAPPROPERTY_R2.

Constructor & Destructor Documentation

◆ ZC_MAPPROPERTY_R2()

Horizon::Zone::ZC_MAPPROPERTY_R2::ZC_MAPPROPERTY_R2 ( std::shared_ptr< ZoneSession s)
inline
30220 : NetworkPacket<ZoneSession>(ID_ZC_MAPPROPERTY_R2, s)
30221 {}
@ ID_ZC_MAPPROPERTY_R2
Definition: TransmittedPackets.hpp:30196

◆ ~ZC_MAPPROPERTY_R2()

virtual Horizon::Zone::ZC_MAPPROPERTY_R2::~ZC_MAPPROPERTY_R2 ( )
inlinevirtual
30222{}

Member Function Documentation

◆ deliver()

void ZC_MAPPROPERTY_R2::deliver ( zc_map_properties  p)

ZC_MAPPROPERTY_R2.

4861{
4862 memcpy(&_p, &p, sizeof(int32_t));
4863
4864 serialize();
4865 transmit();
4866}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int32_t _p
Definition: TransmittedPackets.hpp:30229
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:4868

References _p, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

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

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

◆ serialize()

ByteBuffer & ZC_MAPPROPERTY_R2::serialize ( )
4869{
4870 buf() << _packet_id;
4871 buf() << _type;
4872 buf() << _p;
4873 return buf();
4874}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59
int16_t _type
Definition: TransmittedPackets.hpp:30228

References _p, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _type, 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

◆ _p

int32_t Horizon::Zone::ZC_MAPPROPERTY_R2::_p {0}

Referenced by deliver(), and serialize().

◆ _type

int16_t Horizon::Zone::ZC_MAPPROPERTY_R2::_type {0x28}

Referenced by serialize().


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