0
|
1 #pragma once
|
|
2 #include "LightmapBuilder.h"
|
|
3 #include "DecalBuilder.h"
|
|
4 #include "ParticleEngine.h"
|
|
5 #include "Vis.h"
|
|
6 #include "Mouse.h"
|
|
7 #include "Keyboard.h"
|
|
8 #include "IndoorCameraD3D.h"
|
|
9 #include "CShow.h"
|
|
10 #include "GammaControl.h"
|
|
11 #include "stru6.h"
|
|
12 #include "stru9.h"
|
|
13 #include "stru10.h"
|
|
14 #include "stru11.h"
|
|
15 #include "stru12.h"
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20
|
|
21 /* 320 */
|
|
22 enum GAME_STATE
|
|
23 {
|
|
24 GAME_STATE_0 = 0x0,
|
|
25 GAME_STATE_1 = 0x1,
|
|
26 GAME_STATE_2 = 0x2,
|
|
27 GAME_STATE_3 = 0x3,
|
|
28 GAME_STATE_4 = 0x4,
|
|
29 GAME_STATE_5 = 0x5,
|
|
30 GAME_STATE_6 = 0x6,
|
|
31 GAME_STATE_7 = 0x7,
|
|
32 GAME_STATE_8 = 0x8,
|
|
33 GAME_STATE_FINAL_WINDOW = 0x9,
|
|
34 GAME_STATE_A = 0xA
|
|
35 };
|
|
36
|
|
37
|
|
38
|
|
39 /* 105 */
|
|
40 #pragma pack(push, 1)
|
|
41 struct Game__StationaryLight
|
|
42 {
|
|
43 Vec3_float_ vPosition;
|
|
44 Vec3_float_ vRGBColor;
|
|
45 float flt_18;
|
|
46 };
|
|
47 #pragma pack(pop)
|
|
48
|
|
49
|
|
50 /* 108 */
|
|
51 #pragma pack(push, 1)
|
|
52 struct Game_stru0
|
|
53 {
|
|
54 int field_0;
|
|
55 unsigned __int8 *ptr_4;
|
|
56 int field_8;
|
|
57 int field_C;
|
|
58 };
|
|
59 #pragma pack(pop)
|
|
60
|
|
61
|
|
62 /* 279 */
|
|
63 #pragma pack(push, 1)
|
|
64 struct Game_stru1
|
|
65 {
|
|
66 float flt_0;
|
|
67 float flt_4;
|
|
68 float flt_8;
|
|
69 float flt_C;
|
|
70 float flt_10;
|
|
71 float flt_14;
|
|
72 float flt_18;
|
|
73 };
|
|
74 #pragma pack(pop)
|
|
75
|
|
76 /* 104 */
|
|
77 #pragma pack(push, 1)
|
|
78 struct Game
|
|
79 {
|
|
80 static Game *Create();
|
|
81 static void Destroy();
|
|
82
|
|
83 protected: Game();
|
|
84 protected: ~Game();
|
|
85
|
|
86 public:
|
|
87 void _44E904();
|
|
88 bool InitializeGammaController();
|
|
89 char PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct stru157 *a5, struct stru157 *a6);
|
|
90 bool _44EB12(bool bOutline, struct stru157 *a3, struct stru157 *a4);
|
|
91 void OutlineSelection();
|
|
92 signed int _44EC23(struct stru148 *a2, int *a3, signed int a4);
|
|
93 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4);
|
|
94 bool _44EDE4(struct BLVFace *pFace, int *a3);
|
|
95 bool _44EE30(struct ODMFace *a2, int a3);
|
|
96 bool draw_debug_outlines();
|
|
97 bool _44EEA7();
|
|
98 bool _44F07B();
|
|
99 void ToggleFlags(unsigned int uMask);
|
|
100 void ToggleFlags2(unsigned int uFlag);
|
|
101 void _44F0FD();
|
|
102 void PushStationaryLights(int a2);
|
|
103 void PushStru165s();
|
|
104 void Deinitialize();
|
|
105 void Loop();
|
|
106 void DrawParticles();
|
|
107 void Draw();
|
|
108
|
|
109 //----- (0042EB6A) --------------------------------------------------------
|
|
110 struct stru6 *GetStru6() {return this->pStru6Instance;}
|
|
111 //----- (0042EB71) --------------------------------------------------------
|
|
112 struct IndoorCameraD3D *GetIndoorCamera() {return this->pIndoorCameraD3D;}
|
|
113
|
|
114
|
|
115 void (__thiscall ***vdestructor_ptr)(Game *, bool);
|
|
116 Game__StationaryLight pStationaryLights[25];
|
|
117 char field_2C0[1092];
|
|
118 unsigned int uNumStationaryLights;
|
|
119 Game_stru1 array_708[20];
|
|
120 int field_938;
|
|
121 int field_93C;
|
|
122 int field_940;
|
|
123 int field_944;
|
|
124 int field_948;
|
|
125 int field_94C;
|
|
126 int field_950;
|
|
127 int field_954;
|
|
128 int field_958;
|
|
129 int field_95C;
|
|
130 int field_960;
|
|
131 int field_964;
|
|
132 int field_968;
|
|
133 int field_96C;
|
|
134 int field_970;
|
|
135 Mouse *pMouse;
|
|
136 int field_978;
|
|
137 Game_stru0 stru_97C;
|
|
138 char field_98C[1148];
|
|
139 int array_708_size;
|
|
140 int field_E0C;
|
|
141 __int64 field_E10;
|
|
142 int uNumStationaryLights_in_pStationaryLightsStack;
|
|
143 unsigned int bGammaControlInitialized;
|
|
144 unsigned int uFlags;
|
|
145 unsigned int uFlags2;
|
|
146 float _E28_timed_gamma_strength;
|
|
147 unsigned __int64 uSomeGammaStartTime;
|
|
148 __int64 uSomeGammaDeltaTime;
|
|
149 ThreadWard *pThreadWardInstance;
|
|
150 ParticleEngine *pParticleEngine;
|
|
151 Mouse *pMouseInstance;
|
|
152 LightmapBuilder *pLightmapBuilder;
|
|
153 Vis *pVisInstance;
|
|
154 stru6 *pStru6Instance;
|
|
155 IndoorCameraD3D *pIndoorCameraD3D;
|
|
156 stru9 *pStru9Instance;
|
|
157 stru10 *pStru10Instance;
|
|
158 stru11 *pStru11Instance;
|
|
159 stru12 *pStru12Instance;
|
|
160 CShow *pCShow;
|
|
161 Keyboard *pKeyboardInstance;
|
|
162 GammaController *pGammaController;
|
|
163 int field_E74;
|
|
164 };
|
|
165 #pragma pack(pop)
|
|
166
|
|
167
|
|
168
|
|
169
|
|
170
|
|
171
|
|
172 extern Game *pGame; |