comparison Indoor.h @ 726:9d13d2ec35a6

Слияние
author Ritor1
date Fri, 22 Mar 2013 01:29:46 +0600
parents a5e587c8e30e
children 346f7069676a
comparison
equal deleted inserted replaced
725:7037f22cd716 726:9d13d2ec35a6
175 }; 175 };
176 #pragma pack(pop) 176 #pragma pack(pop)
177 177
178 /* 98 */ 178 /* 98 */
179 #pragma pack(push, 1) 179 #pragma pack(push, 1)
180 struct BLVLightMM7 180 struct BLVLightMM7 //10h
181 { 181 {
182 struct Vec3_short_ vPosition; 182 struct Vec3_short_ vPosition;
183 __int16 uRadius; 183 __int16 uRadius;
184 char uRed; 184 char uRed;
185 char uGreen; 185 char uGreen;
200 200
201 201
202 202
203 /* 100 */ 203 /* 100 */
204 #pragma pack(push, 1) 204 #pragma pack(push, 1)
205 struct BLVDoor 205 struct BLVDoor //50h
206 { 206 {
207 enum State: unsigned __int16 207 enum State: unsigned __int16
208 { 208 {
209 Closed = 0, 209 Closed = 0,
210 Opening = 1, 210 Opening = 1,
236 }; 236 };
237 #pragma pack(pop) 237 #pragma pack(pop)
238 238
239 /* 101 */ 239 /* 101 */
240 #pragma pack(push, 1) 240 #pragma pack(push, 1)
241 struct BLVMapOutline 241 struct BLVMapOutline //0C
242 { 242 {
243 unsigned __int16 uVertex1ID; 243 unsigned __int16 uVertex1ID;
244 unsigned __int16 uVertex2ID; 244 unsigned __int16 uVertex2ID;
245 unsigned __int16 uFace1ID; 245 unsigned __int16 uFace1ID;
246 unsigned __int16 uFace2ID; 246 unsigned __int16 uFace2ID;
262 #define FACE_PRESSURE_PLATE 0x04000000 // Event can be triggered by stepping on the facet. 262 #define FACE_PRESSURE_PLATE 0x04000000 // Event can be triggered by stepping on the facet.
263 #define FACE_ETHEREAL 0x20000000 // Untouchable. You can pass through it. 263 #define FACE_ETHEREAL 0x20000000 // Untouchable. You can pass through it.
264 264
265 /* 93 */ 265 /* 93 */
266 #pragma pack(push, 1) 266 #pragma pack(push, 1)
267 struct BLVFace 267 struct BLVFace //60h
268 { 268 {
269 //----- (0046ED02) -------------------------------------------------------- 269 //----- (0046ED02) --------------------------------------------------------
270 inline BLVFace() 270 inline BLVFace()
271 { 271 {
272 this->uNumVertices = 0; 272 this->uNumVertices = 0;
313 }; 313 };
314 #pragma pack(pop) 314 #pragma pack(pop)
315 315
316 /* 94 */ 316 /* 94 */
317 #pragma pack(push, 1) 317 #pragma pack(push, 1)
318 struct BLVFaceExtra 318 struct BLVFaceExtra //24h
319 { 319 {
320 bool HasEventint(); 320 bool HasEventint();
321 321
322 __int16 field_0; 322 __int16 field_0;
323 __int16 field_2; 323 __int16 field_2;
340 }; 340 };
341 #pragma pack(pop) 341 #pragma pack(pop)
342 342
343 /* 95 */ 343 /* 95 */
344 #pragma pack(push, 1) 344 #pragma pack(push, 1)
345 struct BLVSector 345 struct BLVSector //0x74
346 { 346 {
347 int field_0; 347 int field_0;
348 unsigned __int16 uNumFloors; 348 unsigned __int16 uNumFloors;
349 __int16 field_6; 349 __int16 field_6;
350 unsigned __int16 *pFloors; 350 unsigned __int16 *pFloors;
390 390
391 391
392 #pragma pack(push, 1) 392 #pragma pack(push, 1)
393 struct BLVMapOutlines 393 struct BLVMapOutlines
394 { 394 {
395 uint uNumOutlines; 395 int uNumOutlines;
396 BLVMapOutline pOutlines[1]; 396 BLVMapOutline pOutlines[7000];
397 }; 397 };
398 #pragma pack(pop) 398 #pragma pack(pop)
399 399
400 400
401 401
433 pSpawnPoints = 0; 433 pSpawnPoints = 0;
434 } 434 }
435 435
436 int GetSector(int sX, int sY, int sZ); 436 int GetSector(int sX, int sY, int sZ);
437 void Release(); 437 void Release();
438 int Alloc(); 438 bool Alloc();
439 bool Load(char *pFilename, int a3, size_t i, char *pDest); 439 bool Load(char *pFilename, int a3, size_t i, char *pDest);
440 void Draw(); 440 void Draw();
441 void ToggleLight(unsigned int uLightID, unsigned int bToggle); 441 void ToggleLight(signed int uLightID, unsigned int bToggle);
442 442
443 static unsigned int GetLocationIndex(const char *Str1); 443 static unsigned int GetLocationIndex(const char *Str1);
444 static void ExecDraw(bool bD3D); 444 static void ExecDraw(bool bD3D);
445 static void ExecDraw_sw(unsigned int uFaceID); 445 static void ExecDraw_sw(unsigned int uFaceID);
446 static void ExecDraw_d3d(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4); 446 static void ExecDraw_d3d(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4);
501 int sRotationX; 501 int sRotationX;
502 int field_1C_mb_fov; 502 int field_1C_mb_fov;
503 unsigned __int16 *pRenderTarget; 503 unsigned __int16 *pRenderTarget;
504 unsigned int uTargetWidth; 504 unsigned int uTargetWidth;
505 unsigned int uTargetHeight; 505 unsigned int uTargetHeight;
506 unsigned int uViewportX; 506 signed int uViewportX;
507 unsigned int uViewportY; 507 signed int uViewportY;
508 unsigned int uViewportZ; 508 signed int uViewportZ;
509 unsigned int uViewportW; 509 signed int uViewportW;
510 int field_3C; 510 int field_3C;
511 int *pTargetZ; 511 int *pTargetZ;
512 }; 512 };
513 #pragma pack(pop) 513 #pragma pack(pop)
514 514