SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
InputState.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 #include "GameCommand.h"
10 #include "MapEventTypes.h"
11 #include "GameData/StateStorage.h"
12 #include "GameData/Entity.h"
13 
14 namespace SEGSEvents
15 {
16 
17 // [[ev_def:type]]
19 {
20 public:
21  // [[ev_def:field]]
23  // [[ev_def:field]]
25 
26 public:
27  RecvInputState() : MapLinkEvent(MapEventTypes::evRecvInputState),m_user_commands(0)
28  {}
29  void serializeto(BitStream &) const override;
30  void serializefrom(BitStream &bs) override;
32  void extended_input(BitStream &bs);
33  void recv_client_opts(BitStream &bs);
35 };
36 
37 } // end of SEGSEvents namespace
38 
Definition: BitStream.h:34
Definition: LinkLevelEvent.h:13
MapEventTypes
Definition: MapEventTypes.h:14
Definition: StateStorage.h:45
void recv_client_opts(BitStream &bs)
Definition: InputState.cpp:225
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
void extended_input(BitStream &bs)
Definition: InputState.cpp:139
void serializeto(BitStream &) const override
Definition: InputState.cpp:219
InputState m_next_state
Definition: InputState.h:22
RecvInputState()
Definition: InputState.h:27
void receiveControlState(BitStream &bs)
Definition: InputState.cpp:27
void serializefrom(BitStream &bs) override
Definition: InputState.cpp:177
Definition: InputState.h:18
BitStream m_user_commands
Definition: InputState.h:24