SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scenegraph_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 #include <glm/vec3.hpp>
10 
11 #include <QtCore/QString>
12 #include <vector>
13 
15 {
16  QString name;
17  glm::vec3 pos {0,0,0};
18  glm::vec3 rot {0,0,0};
19 };
20 
22 {
23  QString propName;
24  QString propValue;
25  int propertyType; // 1 - propValue contains float radius, 0 propValue is plain string
26 };
27 
29 {
30  uint32_t clr1;
31  uint32_t clr2;
32 };
33 
35 {
37  QString repl_with;
38 };
39 
41 {
42  enum {
43  Exclude = 1
44  };
45  QString name;
46  float volRel1;
47  float sndRadius;
49  uint32_t sndFlags;
50 };
51 
53 {
54  float Far;
55  float FarFade;
56  float Near;
57  float NearFade;
58  float Scale;
59 };
60 
62 {
63  uint32_t omniColor;
64  float Size;
66 };
67 
69 {
70  QString name;
71  float amplitude; // maybe rotation speed ?
72 };
73 
75 {
76  float fogZ;
77  float fogX;
78  float fogY;
79  uint32_t fogClr1;
80  uint32_t fogClr2;
81 };
82 
84 {
85  uint32_t clr;
86 };
87 
89 {
90  QString name;
91  QString p_Obj;
92  QString type;
93  int flags;
94  std::vector<GroupLoc_Data> p_Grp;
95  std::vector<GroupProperty_Data> p_Property;
96  std::vector<TintColor_Data> p_TintColor;
97  std::vector<DefSound_Data> p_Sound;
98  std::vector<ReplaceTex_Data> p_ReplaceTex;
99  std::vector<DefOmni_Data> p_Omni;
100  std::vector<DefBeacon_Data> p_Beacon;
101  std::vector<DefFog_Data> p_Fog;
102  std::vector<DefAmbient_Data> p_Ambient;
103  std::vector<DefLod_Data> p_Lod;
104 };
105 
107 {
108  QString name;
109  glm::vec3 pos {0,0,0};
110  glm::vec3 rot {0,0,0};
111 };
112 
114 {
115  int Version;
116  std::vector<SceneGraphNode_Data> Def;
117  std::vector<SceneRootNode_Data> Ref;
118  QString Scenefile;
119 };
std::vector< TintColor_Data > p_TintColor
Definition: scenegraph_definitions.h:96
QString name
Definition: scenegraph_definitions.h:45
uint32_t sndFlags
Definition: scenegraph_definitions.h:49
std::vector< ReplaceTex_Data > p_ReplaceTex
Definition: scenegraph_definitions.h:98
glm::vec3 pos
Definition: scenegraph_definitions.h:17
std::vector< SceneGraphNode_Data > Def
Definition: scenegraph_definitions.h:116
Definition: scenegraph_definitions.h:61
Definition: scenegraph_definitions.h:74
QString p_Obj
Definition: scenegraph_definitions.h:91
float Near
Definition: scenegraph_definitions.h:56
int flags
Definition: scenegraph_definitions.h:93
float Size
Definition: scenegraph_definitions.h:64
uint32_t omniColor
Definition: scenegraph_definitions.h:63
QString propName
Definition: scenegraph_definitions.h:23
Definition: scenegraph_definitions.h:113
Definition: scenegraph_definitions.h:14
float fogY
Definition: scenegraph_definitions.h:78
Definition: scenegraph_definitions.h:28
float amplitude
Definition: scenegraph_definitions.h:71
Definition: scenegraph_definitions.h:52
glm::vec3 rot
Definition: scenegraph_definitions.h:18
Definition: scenegraph_definitions.h:34
Definition: scenegraph_definitions.h:43
Definition: scenegraph_definitions.h:106
glm::vec3 rot
Definition: scenegraph_definitions.h:110
std::vector< GroupLoc_Data > p_Grp
Definition: scenegraph_definitions.h:94
Definition: scenegraph_definitions.h:40
std::vector< DefAmbient_Data > p_Ambient
Definition: scenegraph_definitions.h:102
float fogZ
Definition: scenegraph_definitions.h:76
QString name
Definition: scenegraph_definitions.h:90
uint32_t clr1
Definition: scenegraph_definitions.h:30
float Far
Definition: scenegraph_definitions.h:54
Definition: scenegraph_definitions.h:68
QString type
Definition: scenegraph_definitions.h:92
float sndRadius
Definition: scenegraph_definitions.h:47
float volRel1
Definition: scenegraph_definitions.h:46
std::vector< DefOmni_Data > p_Omni
Definition: scenegraph_definitions.h:99
uint32_t clr
Definition: scenegraph_definitions.h:85
float NearFade
Definition: scenegraph_definitions.h:57
std::vector< SceneRootNode_Data > Ref
Definition: scenegraph_definitions.h:117
int propertyType
Definition: scenegraph_definitions.h:25
QString Scenefile
Definition: scenegraph_definitions.h:118
int texIdxToReplace
Definition: scenegraph_definitions.h:36
Definition: scenegraph_definitions.h:88
Definition: scenegraph_definitions.h:83
QString repl_with
Definition: scenegraph_definitions.h:37
uint32_t clr2
Definition: scenegraph_definitions.h:31
float FarFade
Definition: scenegraph_definitions.h:55
float Scale
Definition: scenegraph_definitions.h:58
int Version
Definition: scenegraph_definitions.h:115
std::vector< DefBeacon_Data > p_Beacon
Definition: scenegraph_definitions.h:100
Definition: scenegraph_definitions.h:21
uint32_t fogClr1
Definition: scenegraph_definitions.h:79
QString name
Definition: scenegraph_definitions.h:16
float fogX
Definition: scenegraph_definitions.h:77
std::vector< DefFog_Data > p_Fog
Definition: scenegraph_definitions.h:101
glm::vec3 pos
Definition: scenegraph_definitions.h:109
std::vector< GroupProperty_Data > p_Property
Definition: scenegraph_definitions.h:95
QString propValue
Definition: scenegraph_definitions.h:24
int isNegative
Definition: scenegraph_definitions.h:65
float snd_ramp_feet
Definition: scenegraph_definitions.h:48
std::vector< DefLod_Data > p_Lod
Definition: scenegraph_definitions.h:103
QString name
Definition: scenegraph_definitions.h:108
QString name
Definition: scenegraph_definitions.h:70
std::vector< DefSound_Data > p_Sound
Definition: scenegraph_definitions.h:97
uint32_t fogClr2
Definition: scenegraph_definitions.h:80