annotate Indoor.h @ 28:18f7a1b94448

Indoor::Load
author Nomad
date Tue, 16 Oct 2012 19:31:34 +0200
parents 540178ef9b18
children e62134245ab0
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "VectorTypes.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 /* 319 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 enum LEVEL_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
3
540178ef9b18 Main menu functionality
Nomad
parents: 0
diff changeset
11 LEVEL_null = 0,
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 LEVEL_Indoor = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 LEVEL_Outdoor = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 extern LEVEL_TYPE uCurrentlyLoadedLevelType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 74 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 struct LevelDecoration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 LevelDecoration();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int GetGlobalEvent();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int IsInteractive();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 bool _47A825();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned __int16 uDecorationDescID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 struct Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int field_10_y_rot;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 __int16 uCog;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 __int16 field_16_event_id;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 __int16 field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 __int16 field_1A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 extern LevelDecoration pLevelDecorations[3000];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 extern size_t uNumLevelDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 extern LevelDecoration *_5C3420_pDecoration;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 /* 86 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 struct SpawnPointMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 /* 102 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 struct SpawnPointMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 //----- (00448DD6) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 SpawnPointMM7()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 uRadius = 32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 uIndex = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 uKind = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 uGroup = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 unsigned int uGroup;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 struct DDM_DLV_Header
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 //----- (00462607) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 inline DDM_DLV_Header()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 this->uLastRepawnDay = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 this->uNumRespawns = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 this->uReputation = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 this->field_C_alert = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 this->uNumFacesInBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 this->uNumDecorations = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 this->uNumBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 int uNumRespawns;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 int uLastRepawnDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 int uReputation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 int field_C_alert;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 unsigned int uNumFacesInBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 unsigned int uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 unsigned int uNumBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 int field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 /* 291 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 enum PolygonType : __int8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 POLYGON_Invalid = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 POLYGON_VerticalWall = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 POLYGON_unk = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 POLYGON_Floor = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 POLYGON_InBetweenFloorAndWall = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 POLYGON_Ceiling = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 POLYGON_InBetweenCeilingAndWall = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 /* 90 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 struct BLVHeader
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 char field_0[104];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 unsigned int uFaces_fdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 unsigned int uSector_rdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 unsigned int uSector_lrdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 unsigned int uDoors_ddata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 char field_78[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 /* 96 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 struct BLVSectorMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 int dword_000074;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 /* 97 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 struct BLVLightMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 unsigned __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 /* 98 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 struct BLVLightMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 struct Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 char uRed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 char uGreen;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 char uBlue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 char uType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 __int16 uAtributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 /* 99 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 struct BLVLightMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 int uID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 /* 100 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 struct BLVDoor
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 unsigned int uDoorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 unsigned int uTimeSinceTriggered;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 Vec3_int_ vDirection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 int uMoveLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 int uOpenSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 int uCloseSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 unsigned __int16 *pSectorIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 __int16 *pDeltaUs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 __int16 *pDeltaVs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 unsigned __int16 *pXOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 unsigned __int16 *pYOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 unsigned __int16 *pZOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 unsigned __int16 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 unsigned __int16 uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 __int16 field_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 unsigned __int16 uNumOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 unsigned __int16 uState;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 /* 101 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 struct BLVMapVertex
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 unsigned __int16 uVertex1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 unsigned __int16 uVertex2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 unsigned __int16 uFace1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 unsigned __int16 uFace2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 __int16 sZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 unsigned __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 /* 93 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 struct BLVFace
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 //----- (0046ED02) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 inline BLVFace()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 this->uNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 this->uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 this->uFaceExtraID = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 this->pVertexIDs = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 this->pZInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 this->pYInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 this->pXInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 char _get_normals(Vec3_int_ *a2, Vec3_int_ *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 struct Texture *GetTexture();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 void FromODM(struct ODMFace *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 struct Plane_float_ pFacePlane;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 struct Plane_int_ pFacePlane_old;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 int zCalc1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 int zCalc2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 int zCalc3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 unsigned __int16 *pXInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 unsigned __int16 *pYInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 unsigned __int16 *pZInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 unsigned __int16 *pVertexUIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 unsigned __int16 *pVertexVIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 unsigned __int16 uFaceExtraID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 unsigned __int16 uBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 unsigned __int16 uSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 __int16 uBackSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 struct BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 PolygonType uPolygonType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 unsigned __int8 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 char field_5E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 char field_5F;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 /* 94 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 struct BLVFaceExtra
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 int HasEventint();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 __int16 field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 unsigned __int16 uAdditionalBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 __int16 field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 __int16 sTextureDeltaU;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 __int16 sTextureDeltaV;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 __int16 sCogNumber;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 unsigned __int16 uEventID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 __int16 field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 __int16 field_22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 /* 95 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 struct BLVSector
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 unsigned __int16 *pFloors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 unsigned __int16 *pWalls;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 __int16 field_16;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 unsigned __int16 *pCeilings;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 unsigned __int16 *pFluids;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 __int16 uNumPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 __int16 field_26;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 unsigned __int16 *pPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 __int16 field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __int16 uNumNonBSPFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 __int16 uNumCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340 __int16 field_36;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 int pCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 __int16 field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 __int16 field_3E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 unsigned __int16 *pCogs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 unsigned __int16 uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346 __int16 field_46;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 unsigned __int16 *pDecorationIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 __int16 field_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 unsigned __int16 *pMarkers;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 __int16 uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 __int16 field_56;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 __int16 uWaterLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 __int16 uMistLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 __int16 uLightDistanceMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 __int16 uMinAmbientLightLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 __int16 uFirstBSPNode;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 __int16 exit_tag;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
365 #pragma pack(push, 1)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
366 struct BLVMapVertices
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
367 {
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
368 uint uNumVertices;
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
369 BLVMapVertex pVertices[1];
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
370 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
371 #pragma pack(pop)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
375 #pragma pack(push, 1)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
376 struct IndoorLocation_stru1
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
377 {
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
378 unsigned __int64 uLastVisitDay;
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
379 char field_2F4[48];
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
380 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
381 #pragma pack(pop)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
382
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 /* 89 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 struct IndoorLocation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 //----- (00462592) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
390 inline IndoorLocation()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
391 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
392 bLoaded = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
393 ptr_0002B8_sector_lrdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
394 ptr_0002B4_doors_ddata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
395 ptr_0002B0_sector_rdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
396 ptr_2AC = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397 pVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398 pFaces = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 pFaceExtras = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
400 pSectors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 pLights = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
402 pDoors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
403 pNodes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
404 pMapVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
405 uNumSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
406 pSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
407 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
408
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409 int GetSector(int sX, int sY, int sZ);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
410 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
411 int Alloc();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 bool Load(char *pFilename, int a3, size_t i, char *pDest);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
413 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
414 void ToggleLight(unsigned int uLightID, unsigned int bToggle);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
416 static unsigned int GetLocationIndex(const char *Str1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
417 static void ExecDraw(char a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
418 static void ExecDraw_sub1(unsigned int uFaceID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
419 static void ExecDraw_sub0(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
420
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
421 char pFilename[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
422 char field_20[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
423 unsigned int bLoaded;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
424 char field_54[404];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
425 struct BLVHeader blv;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
426 unsigned int uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
427 struct Vec3_short_ *pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
428 unsigned int uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
429 struct BLVFace *pFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430 unsigned int uNumFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
431 struct BLVFaceExtra *pFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
432 int uNumSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
433 struct BLVSector *pSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
434 int uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
435 struct BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 int uNumDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 struct BLVDoor *pDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
438 unsigned int uNumNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
439 struct BSPNode *pNodes;
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
440 BLVMapVertices *pMapVertices;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
441 unsigned __int16 *ptr_2AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
442 unsigned __int16 *ptr_0002B0_sector_rdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
443 unsigned __int16 *ptr_0002B4_doors_ddata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
444 unsigned __int16 *ptr_0002B8_sector_lrdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
445 unsigned int uNumSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
446 struct SpawnPointMM7 *pSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
447 struct DDM_DLV_Header dlv;
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
448 IndoorLocation_stru1 stru1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
449 char _visible_outlines[876];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
450 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
451 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
452
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
453 extern IndoorLocation *pIndoor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
454
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
455
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
456
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
457
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
458
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
459
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
460
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
461
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
462
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
463
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
464
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
465
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
466 /* 263 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
467 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
468 struct IndoorLocation_drawstru
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
469 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
470 int field_0_timer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
471 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
472 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
473 int sRotationY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
474 int sRotationX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
475 int field_1C_mb_fov;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
476 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
477 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
478 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
479 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
480 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
481 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
482 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
483 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
484 int *pTargetZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
485 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
486 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
487
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
488
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
489
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
490
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
491
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
492
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
493
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
494
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
495
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
496
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
497
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
498
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
499 /* 162 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
500 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
501 struct BLVRenderParams
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
502 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
503 int Set(struct IndoorLocation_drawstru *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
504
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
505 int field_0_timer_;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
506 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
507 Vec3_int_ vPartyPos;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
508 int sPartyRotY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
509 int sPartyRotX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
510 int uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
511 int sCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
512 int sSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
513 int sCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
514 int sSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
515 float fCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
516 float fSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
517 float fCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
518 float fSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
519 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
520 float field_44;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
521 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
522 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
523 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
524 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
525 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
526 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
527 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
528 int field_64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
529 int *pTargetZBuffer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
530 int uViewportHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
531 int field_70;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
532 int uViewportCenterX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
533 int uViewportCenterY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
534 struct stru170_stru2 *field_7C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
535 int field_80;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
536 int field_84;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
537 int field_88;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
538 int field_8C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
539 int field_90;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
540 int field_94;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
541 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
542 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
543
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
544 extern struct BLVRenderParams *pBLVRenderParams;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
545
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
546
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
547
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
548
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
549
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
550 #include "Indoor_stuff.h"