SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
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 - 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 
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 = 5; // v5: removes m_current_map
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 = 24; // map_idx == 24 will load up Outbreak. So newly-created characters will go there
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