-
Notifications
You must be signed in to change notification settings - Fork 44
/
HouseTypeClass.h
118 lines (92 loc) · 2.95 KB
/
HouseTypeClass.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
/*
ObjectTypes are initialized by INI files.
*/
#pragma once
#include <AbstractTypeClass.h>
#include <Helpers\String.h>
class AircraftTypeClass;
class InfantryTypeClass;
class UnitTypeClass;
class NOVTABLE HouseTypeClass : public AbstractTypeClass
{
public:
static const AbstractType AbsID = AbstractType::HouseType;
//Array
ABSTRACTTYPE_ARRAY(HouseTypeClass, 0xA83C98u);
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//IPersistStream
virtual HRESULT __stdcall Load(IStream* pStm) R0;
virtual HRESULT __stdcall Save(IStream* pStm,BOOL fClearDirty) R0;
//Destructor
virtual ~HouseTypeClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//helpers
HouseTypeClass* FindParentCountry() const {
return HouseTypeClass::Find(this->ParentCountry);
}
int FindParentCountryIndex() const {
return HouseTypeClass::FindIndexOfName(this->ParentCountry);
}
static signed int __fastcall FindIndexOfName(const char *name)
{ JMP_STD(0x5117D0); }
//Constructor
HouseTypeClass(const char* pID) noexcept
: HouseTypeClass(noinit_t())
{ JMP_THIS(0x5113F0); }
protected:
explicit __forceinline HouseTypeClass(noinit_t) noexcept
: AbstractTypeClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
FixedString<25> ParentCountry;
PROTECTED_PROPERTY(BYTE, align_B1[3]);
int ArrayIndex;
int ArrayIndex2; //dunno why
int SideIndex;
int ColorSchemeIndex;
PROTECTED_PROPERTY(DWORD, align_C4);
//are these unused TS leftovers?
double FirepowerMult;
double GroundspeedMult;
double AirspeedMult;
double ArmorMult;
double ROFMult;
double CostMult;
double BuildtimeMult;
//---
float ArmorInfantryMult;
float ArmorUnitsMult;
float ArmorAircraftMult;
float ArmorBuildingsMult;
float ArmorDefensesMult;
float CostInfantryMult;
float CostUnitsMult;
float CostAircraftMult;
float CostBuildingsMult;
float CostDefensesMult;
float SpeedInfantryMult;
float SpeedUnitsMult;
float SpeedAircraftMult;
float BuildtimeInfantryMult;
float BuildtimeUnitsMult;
float BuildtimeAircraftMult;
float BuildtimeBuildingsMult;
float BuildtimeDefensesMult;
float IncomeMult;
TypeList<InfantryTypeClass*> VeteranInfantry;
TypeList<UnitTypeClass*> VeteranUnits;
TypeList<AircraftTypeClass*> VeteranAircraft;
char Suffix [4];
char Prefix;
bool Multiplay;
bool MultiplayPassive;
bool WallOwner;
bool SmartAI; //"smart"?
PROTECTED_PROPERTY(BYTE, padding_1A9[7]);
};