SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 #include "MapEvents.h"
10 #include "NetStructures/Entity.h"
11 
12 class InputState : public MapLinkEvent
13 {
14 public:
17  uint32_t m_target_idx;
19 
20 public:
22  {}
23  void serializeto(BitStream &) const;
24  void partial_2(BitStream &bs);
25  void extended_input(BitStream &bs);
26  void serializefrom(BitStream &bs);
27  void recv_client_opts(BitStream &bs);
28  glm::vec3 &pyr() {return m_data.camera_pyr;}
30 };
glm::vec3 & pyr()
Definition: InputState.h:28
Definition: BitStream.h:30
Definition: InputState.h:12
void serializefrom(BitStream &bs)
Definition: InputState.cpp:278
void recv_client_opts(BitStream &bs)
Definition: InputState.cpp:322
uint32_t m_assist_target_idx
Definition: InputState.h:18
Definition: Entity.h:124
InputState()
Definition: InputState.h:21
void serializeto(BitStream &) const
Definition: InputState.cpp:38
bool m_has_target
Definition: InputState.h:16
glm::vec3 camera_pyr
Definition: Entity.h:141
void partial_2(BitStream &bs)
Definition: InputState.cpp:118
void extended_input(BitStream &bs)
Definition: InputState.cpp:205
BitStream m_user_commands
Definition: InputState.h:29
Definition: MapEventTypes.h:11
InputStateStorage m_data
Definition: InputState.h:15
uint32_t m_target_idx
Definition: InputState.h:17