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