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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_GUILD_INFO2 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_GUILD_INFO2 ()
 
void deliver (s_zc_guild_info2 s)
 ZC_GUILD_INFO2. 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

s_zc_guild_info2 _s
 

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

Constructor & Destructor Documentation

◆ ZC_GUILD_INFO2()

Horizon::Zone::ZC_GUILD_INFO2::ZC_GUILD_INFO2 ( std::shared_ptr< ZoneSession s)
inline
27254 : NetworkPacket<ZoneSession>(ID_ZC_GUILD_INFO2, s)
27255 {}
@ ID_ZC_GUILD_INFO2
Definition: TransmittedPackets.hpp:27227

◆ ~ZC_GUILD_INFO2()

virtual Horizon::Zone::ZC_GUILD_INFO2::~ZC_GUILD_INFO2 ( )
inlinevirtual
27256{}

Member Function Documentation

◆ deliver()

void ZC_GUILD_INFO2::deliver ( s_zc_guild_info2  s)

ZC_GUILD_INFO2.

1397{
1398 _s = s;
1399
1400 serialize();
1401 transmit();
1402}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
s_zc_guild_info2 _s
Definition: TransmittedPackets.hpp:27262
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:1404

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

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_GUILD_INFO2::serialize ( )
1405{
1406 buf() << _packet_id;
1407 buf() << _s.guild_id;
1408 buf() << _s.level;
1409 buf() << _s.member_num;
1410 buf() << _s.member_max;
1411 buf() << _s.exp;
1412 buf() << _s.max_exp;
1413 buf() << _s.points;
1414 buf() << _s.honor;
1415 buf() << _s.virtue;
1416 buf() << _s.emblem_id;
1418 buf().append(_s. master_name, MAX_UNIT_NAME_LENGTH);
1419 buf().append(_s. managed_castle, MAP_NAME_LENGTH_EXT);
1420 buf() << _s.zeny;
1421 return buf();
1422}
#define MAX_UNIT_NAME_LENGTH
Definition: Client.hpp:34
#define MAP_NAME_LENGTH_EXT
Definition: Client.hpp:47
void append(T value)
Definition: ByteBuffer.hpp:140
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59
int honor
Definition: ClientDefinitions.hpp:274
int zeny
Definition: ClientDefinitions.hpp:280
int guild_id
Definition: ClientDefinitions.hpp:267
int emblem_id
Definition: ClientDefinitions.hpp:276
int virtue
Definition: ClientDefinitions.hpp:275
int member_num
Definition: ClientDefinitions.hpp:269
int member_max
Definition: ClientDefinitions.hpp:270
int level
Definition: ClientDefinitions.hpp:268
int exp
Definition: ClientDefinitions.hpp:271
int points
Definition: ClientDefinitions.hpp:273
int max_exp
Definition: ClientDefinitions.hpp:272

References Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _s, ByteBuffer::append(), Horizon::Base::NetworkPacket< ZoneSession >::buf(), s_zc_guild_info2::emblem_id, s_zc_guild_info2::exp, s_zc_guild_info2::guild_id, s_zc_guild_info2::honor, s_zc_guild_info2::level, MAP_NAME_LENGTH_EXT, s_zc_guild_info2::max_exp, MAX_UNIT_NAME_LENGTH, s_zc_guild_info2::member_max, s_zc_guild_info2::member_num, s_zc_guild_info2::points, s_zc_guild_info2::virtue, and s_zc_guild_info2::zeny.

Referenced by deliver().

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

Member Data Documentation

◆ _s

s_zc_guild_info2 Horizon::Zone::ZC_GUILD_INFO2::_s

Referenced by deliver(), and serialize().


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