SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entitydata_definitions.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 
10 #include <QtCore/QString>
11 #include <glm/vec3.hpp>
12 #include <glm/gtx/quaternion.hpp>
13 
14 struct EntityData
15 {
16 static const constexpr uint32_t class_version = 3;
17  uint32_t m_access_level = 0;
18  uint8_t m_origin_idx = {0};
19  uint8_t m_class_idx = {0};
20  glm::vec3 m_pos;
21  glm::vec3 m_orientation_pyr; // Stored in Radians
22  uint32_t m_map_idx = 1; // only 1 map instance
23 };
glm::vec3 m_pos
Definition: entitydata_definitions.h:20
uint32_t m_map_idx
Definition: entitydata_definitions.h:22
Definition: entitydata_definitions.h:14
static const constexpr uint32_t class_version
Definition: entitydata_definitions.h:16
uint8_t m_class_idx
Definition: entitydata_definitions.h:19
glm::vec3 m_orientation_pyr
Definition: entitydata_definitions.h:21
uint32_t m_access_level
Definition: entitydata_definitions.h:17
uint8_t m_origin_idx
Definition: entitydata_definitions.h:18