Emergency 20 Dokumentation  4.2.0
em5::packet::HostList Class Reference

TODO(co) Comment me. More...

#include <HostList.h>

Inheritance diagram for em5::packet::HostList:
qsf::packet::BinaryPacket< HostList > qsf::packet::BinaryPacketBase

Public Member Functions

 HostList ()
 Default constructor. More...
 
void setHostList (const std::vector< multiplayer::HostEntry > &hostList)
 
const std::vector< multiplayer::HostEntry > & getHostList () const
 
virtual void serialize (qsf::BinarySerializer &serializer) override
 Method that implements the actual de/serialization. More...
 
- Public Member Functions inherited from qsf::packet::BinaryPacket< HostList >
virtual uint32 getPacketId () const override
 Returns the packet identifier that was specified as the template parameter. More...
 
- Public Member Functions inherited from qsf::packet::BinaryPacketBase
 BinaryPacketBase ()
 Default constructor. More...
 
virtual ~BinaryPacketBase ()
 Destructor. More...
 
void deserialize (const BinarySerializer &serializer)
 Deserializes the packet from the given qsf::BinarySerializer object. More...
 
void serialize (BinarySerializer &serializer) const
 Serializes the packet to the given qsf::BinarySerializer object. More...
 

Static Public Attributes

static const uint32 PACKET_ID
 

Detailed Description

TODO(co) Comment me.

Constructor & Destructor Documentation

em5::packet::HostList::HostList ( )

Default constructor.

Member Function Documentation

const std::vector<multiplayer::HostEntry>& em5::packet::HostList::getHostList ( ) const
virtual void em5::packet::HostList::serialize ( qsf::BinarySerializer serializer)
overridevirtual

Method that implements the actual de/serialization.

Parameters
[in]serializerThe serializer object that the packet should de/serialize from/to
Note
  • Even though "this" is not const it is strictly prohibited to modify "this" if the serializer is in write mode

Reimplemented from qsf::packet::BinaryPacketBase.

void em5::packet::HostList::setHostList ( const std::vector< multiplayer::HostEntry > &  hostList)

Member Data Documentation

const uint32 em5::packet::HostList::PACKET_ID
static

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