SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
npc_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 "Colors.h"
11 
12 #include <QString>
13 #include <vector>
14 
16 {
17  QString m_Name;
20  QString m_Texture1;
21  QString m_Texture2;
22  QString m_CP_Geometry;
23 };
24 
25 enum class BodyType : int
26 {
27  Male = 0,
28  Female = 1,
29  BasicMale = 2,
30  BasicFemale = 3,
31  Huge = 4,
32  Enemy = 5,
33  Villain = 6,
34 };
35 
37 {
38  QString m_EntTypeFile;
41  float m_Scale = 0;
42  float m_BoneScale = 0;
44  uint32_t m_NumParts = 0;
45  std::vector<Parse_CostumePart> m_CostumeParts;
46 };
47 
49 {
50  QString PowerCategory;
51  QString PowerSet;
52  QString Power;
53  int Level;
54  int Remove;
55 };
56 
57 struct Parse_NPC
58 {
59  QString m_Name;
60  QString m_DisplayName;
61  int m_Rank;
62  QString m_Class;
63  int m_Level;
64  int m_XP;
65  std::vector<NPCPower_Desc> m_Powers;
66  std::vector<Parse_Costume> m_Costumes;
67  bool has_variant(int idx) const { return idx<m_Costumes.size(); }
68 };
69 using AllNpcs_Data = std::vector<Parse_NPC>;
QString m_Texture2
Definition: npc_definitions.h:21
Definition: Colors.h:62
std::vector< NPCPower_Desc > m_Powers
Definition: npc_definitions.h:65
int m_Level
Definition: npc_definitions.h:63
QString m_Name
Definition: npc_definitions.h:17
QString m_Texture1
Definition: npc_definitions.h:20
RGBA m_Color1
Definition: npc_definitions.h:18
QString Power
Definition: npc_definitions.h:52
int Level
Definition: npc_definitions.h:53
int Remove
Definition: npc_definitions.h:54
std::vector< Parse_Costume > m_Costumes
Definition: npc_definitions.h:66
QString m_Name
Definition: npc_definitions.h:59
int m_XP
Definition: npc_definitions.h:64
int m_Rank
Definition: npc_definitions.h:61
float m_BoneScale
Definition: npc_definitions.h:42
std::vector< Parse_CostumePart > m_CostumeParts
Definition: npc_definitions.h:45
RGBA m_Color2
Definition: npc_definitions.h:19
QString m_CostumeFilePrefix
Definition: npc_definitions.h:39
QString PowerCategory
Definition: npc_definitions.h:50
uint32_t m_NumParts
Definition: npc_definitions.h:44
std::vector< Parse_NPC > AllNpcs_Data
Definition: npc_definitions.h:69
Definition: npc_definitions.h:57
BodyType m_BodyType
Definition: npc_definitions.h:40
Definition: npc_definitions.h:15
Definition: npc_definitions.h:36
QString m_DisplayName
Definition: npc_definitions.h:60
float m_Scale
Definition: npc_definitions.h:41
QString m_Class
Definition: npc_definitions.h:62
QString m_EntTypeFile
Definition: npc_definitions.h:38
bool has_variant(int idx) const
Definition: npc_definitions.h:67
QString m_CP_Geometry
Definition: npc_definitions.h:22
RGBA m_SkinColor
Definition: npc_definitions.h:43
QString PowerSet
Definition: npc_definitions.h:51
Definition: npc_definitions.h:48
BodyType
Definition: npc_definitions.h:25