Leviathan  0.8.0.0
Leviathan game engine
Leviathan::RequestNone Class Reference

Empty request for ones that require no data. More...

#include <NetworkRequest.h>

+ Inheritance diagram for Leviathan::RequestNone:

Public Member Functions

 RequestNone (NETWORK_REQUEST_TYPE actualtype)
 
void _SerializeCustom (sf::Packet &packet) const override
 Base classes serialize their data. More...
 
 RequestNone (NETWORK_REQUEST_TYPE actualtype, uint32_t idforresponse, sf::Packet &packet)
 
- Public Member Functions inherited from Leviathan::NetworkRequest
 NetworkRequest (NETWORK_REQUEST_TYPE type, uint32_t idforresponse=0)
 
virtual ~NetworkRequest ()
 
void AddDataToPacket (sf::Packet &packet) const
 
NETWORK_REQUEST_TYPE GetType () const
 
uint32_t GetIDForResponse () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Leviathan::NetworkRequest
static DLLEXPORT std::shared_ptr< NetworkRequestLoadFromPacket (sf::Packet &packet, uint32_t messagenumber)
 
- Protected Attributes inherited from Leviathan::NetworkRequest
const NETWORK_REQUEST_TYPE Type
 
const uint32_t IDForResponse = 0
 

Detailed Description

Empty request for ones that require no data.

Also used for all other request that don't need any data members

Definition at line 153 of file NetworkRequest.h.

Constructor & Destructor Documentation

◆ RequestNone() [1/2]

Leviathan::RequestNone::RequestNone ( NETWORK_REQUEST_TYPE  actualtype)
inline

Definition at line 155 of file NetworkRequest.h.

155  :
156  NetworkRequest(actualtype)
157  {}
NetworkRequest(NETWORK_REQUEST_TYPE type, uint32_t idforresponse=0)

◆ RequestNone() [2/2]

Leviathan::RequestNone::RequestNone ( NETWORK_REQUEST_TYPE  actualtype,
uint32_t  idforresponse,
sf::Packet &  packet 
)
inline

Definition at line 162 of file NetworkRequest.h.

162  :
163  NetworkRequest(actualtype, idforresponse)
164  {
165  }
NetworkRequest(NETWORK_REQUEST_TYPE type, uint32_t idforresponse=0)

Member Function Documentation

◆ _SerializeCustom()

void Leviathan::RequestNone::_SerializeCustom ( sf::Packet &  packet) const
inlineoverridevirtual

Base classes serialize their data.

Implements Leviathan::NetworkRequest.

Definition at line 159 of file NetworkRequest.h.

159  {
160  }

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