This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CObjectDatas.h
120 lines (111 loc) · 2.46 KB
/
CObjectDatas.h
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
#pragma once
#include <MFC/ppmfc_cstring.h>
enum class ObjectType
{
Infantry = 0,
Structure = 1,
Aircraft = 2,
Unit = 3,
Overlay = 4,
Celltag = 5,
Waypoints = 6
};
class CInfantryData
{
public:
ppmfc::CString House;
ppmfc::CString TypeID;
ppmfc::CString Health;
ppmfc::CString Y;
ppmfc::CString X;
ppmfc::CString SubCell;
ppmfc::CString Status;
ppmfc::CString Facing;
ppmfc::CString Tag;
ppmfc::CString VeterancyPercentage;
ppmfc::CString Group;
ppmfc::CString IsAboveGround;
ppmfc::CString AutoNORecruitType;
ppmfc::CString AutoYESRecruitType;
bool Flag : 1;
};
class CBuildingData
{
public:
ppmfc::CString House;
ppmfc::CString TypeID;
ppmfc::CString Health;
ppmfc::CString Y;
ppmfc::CString X;
ppmfc::CString Facing;
ppmfc::CString Tag;
ppmfc::CString AISellable;
ppmfc::CString AIRebuildable;
ppmfc::CString PoweredOn;
ppmfc::CString Upgrades;
ppmfc::CString SpotLight;
ppmfc::CString Upgrade1;
ppmfc::CString Upgrade2;
ppmfc::CString Upgrade3;
ppmfc::CString AIRepairable;
ppmfc::CString Nominal;
bool Flag : 1;
};
class CUnitData
{
public:
ppmfc::CString House;
ppmfc::CString TypeID;
ppmfc::CString Health;
ppmfc::CString Y;
ppmfc::CString X;
ppmfc::CString Facing;
ppmfc::CString Status;
ppmfc::CString Tag;
ppmfc::CString VeterancyPercentage;
ppmfc::CString Group;
ppmfc::CString IsAboveGround;
ppmfc::CString FollowsIndex;
ppmfc::CString AutoNORecruitType;
ppmfc::CString AutoYESRecruitType;
bool Flag : 1;
};
class CAircraftData
{
public:
ppmfc::CString House;
ppmfc::CString TypeID;
ppmfc::CString Health;
ppmfc::CString Y;
ppmfc::CString X;
ppmfc::CString Facing;
ppmfc::CString Status;
ppmfc::CString Tag;
ppmfc::CString VeterancyPercentage;
ppmfc::CString Group;
ppmfc::CString AutoNORecruitType;
ppmfc::CString AutoYESRecruitType;
bool Flag : 1;
};
class CTerrainData
{
public:
ppmfc::CString TypeID;
int Y;
int X;
bool Flag : 1;
};
class CSmudgeData
{
public:
ppmfc::CString TypeID;
int Y;
int X;
bool Flag : 1;
};
static_assert(sizeof(CInfantryData) == 0x3C);
static_assert(sizeof(CBuildingData) == 0x48);
static_assert(sizeof(CUnitData) == 0x3C);
static_assert(sizeof(CAircraftData) == 0x34);
static_assert(sizeof(CTerrainData) == 0x10);
static_assert(sizeof(CSmudgeData) == 0x10);