forked from matiascalegaris/BabelUI
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonDefines.hpp
183 lines (168 loc) · 2.74 KB
/
CommonDefines.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#pragma once
namespace Babel
{
struct Settings {
int Width;
int Height;
int Compmpressed;
int EnableDebug;
};
struct UserStats
{
int16_t MaxHp;
int16_t MinHp;
int32_t HpShield;
int16_t MaxMAN;
int16_t MinMAN;
int16_t MaxSTA;
int16_t MinSTA;
uint8_t MaxAGU;
uint8_t MinAGU;
uint8_t MaxHAM;
uint8_t MinHAM;
int32_t GLD;
int32_t OroPorNivel;
int16_t Lvl;
uint8_t Class;
uint8_t Gender;
uint8_t Race;
uint8_t Home;
int32_t NextLevel;
int32_t Exp;
uint8_t Status; // 0 = Alive & 1 = Death
};
struct Color
{
uint8_t R;
uint8_t G;
uint8_t B;
};
struct ChatMessage
{
const char* Sender;
Color SenderColor;
const char* Text;
Color TextColor;
uint8_t BoldText;
uint8_t ItalicText;
};
struct InvItem
{
uint8_t Slot;
int16_t ObjIndex;
int32_t GrhIndex;
uint8_t ObjType;
uint8_t Equipped;
uint8_t CantUse;
int16_t Amount;
int16_t MinHit;
int16_t MaxHit;
int16_t MinDef;
int16_t MaxDef;
float Value;
int32_t Cooldown;
int16_t CDType;
int32_t CDMask;
int16_t Amunition;
uint8_t IsBindable;
const char* Name;
const char* Desc;
};
struct SpellEntry
{
uint8_t Slot;
int16_t SpellIndex;
int32_t Icon;
int32_t Cooldown;
uint8_t IsBindable;
const char* Name;
};
struct Position
{
float TileX;
float TileY;
};
struct QuestNpc
{
Position Position;
int16_t NpcNumber;
int16_t State;
};
struct Intervals
{
int32_t Hit;
int32_t Bow;
int32_t Magic;
int32_t ExtractWork;
int32_t BuildWork;
int32_t Walk;
int32_t DropItem;
int32_t UseItemKey;
int32_t UseItemClick;
int32_t HitMagic;
int32_t MagicHit;
int32_t HitUseItem;
};
struct HotkeySlot
{
int16_t Type;
int16_t Index;
int16_t LastKnownslot;
};
struct LobbyData
{
int16_t Index;
int16_t Id;
char * Description;
char* ScenarioType;
int16_t MinLevel;
int16_t MaxLevel;
int16_t MinPlayers;
int16_t MaxPlayers;
int16_t RegisteredPlayers;
int16_t TeamSize;
int16_t TeamType;
int32_t InscriptionPrice;
uint8_t IsPrivate;
};
#pragma pack(push, 1) // Set struct packing to 1 byte alignment
struct AOShopItem {
int32_t ObjectId;
int32_t Price;
};
#pragma pack(pop)
struct ScenarioSettings
{
uint8_t MinLevel;
uint8_t MaxLevel;
uint8_t MinPlayers;
uint8_t MaxPlayers;
uint8_t TeamSize;
uint8_t TeamType;
int32_t InscriptionPrice;
uint8_t ScenarioType;
uint8_t RoundAmount;
};
struct Tclan
{
uint8_t Aligmnent;
int16_t Index;
char* Name;
};
struct ClanInfo
{
int16_t Index;
uint8_t Aligment;
};
struct GuildDetails
{
const char* Name;
const char* FounderName;
const char* CreationDate;
const char* LeaderName;
int16_t MemberCount;
const char* Aligment;
const char* Description;
uint8_t Level;
};
}