Emergency 20 Dokumentation  4.2.0
RegisterHostRequest.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
15 
17 
18 
19 //[-------------------------------------------------------]
20 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24  namespace packet
25  {
26 
27 
28  //[-------------------------------------------------------]
29  //[ Classes ]
30  //[-------------------------------------------------------]
35  class EM5_API_EXPORT RegisterHostRequest : public qsf::packet::BinaryPacket<RegisterHostRequest>
36  {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Public definitions ]
41  //[-------------------------------------------------------]
42  public:
43  static const uint32 PACKET_ID;
44 
45 
46  //[-------------------------------------------------------]
47  //[ Public methods ]
48  //[-------------------------------------------------------]
49  public:
55 
56  const multiplayer::HostEntry& getHostEntry() const;
57  void setHostEntry(const multiplayer::HostEntry& hostList);
58 
59  const std::string& getGameModificationString() const;
60  void setGameModificationString(const std::string& string);
61 
62 
63  //[--------------------------------------------------------]
64  //[ Public virtual em5::packet::SerializedPacket methods ]
65  //[--------------------------------------------------------]
66  public:
67  virtual void serialize(qsf::BinarySerializer& serializer) override;
68 
69 
70  //[-------------------------------------------------------]
71  //[ Private data ]
72  //[-------------------------------------------------------]
73  private:
74  multiplayer::HostEntry mHostEntry;
75  std::string mGameModificationString;
76 
77 
78  };
79 
80 
81 //[-------------------------------------------------------]
82 //[ Namespace ]
83 //[-------------------------------------------------------]
84  } // packet
85 } // em5
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
TODO(co) Comment me.
Definition: RegisterHostRequest.h:35
#define EM5_API_EXPORT
Definition: Export.h:28
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
TODO(co) Comment me.
Definition: BinaryPacket.h:108
static const uint32 PACKET_ID
Definition: RegisterHostRequest.h:43
Binary serializer class.
Definition: BinarySerializer.h:35
Definition: MatchmakingTypes.h:47