Mercurial > mm7
annotate Lights.h @ 2383:342b73a61a60
sub_407A1C - refactoring min-max
author | zipi |
---|---|
date | Sun, 22 Jun 2014 14:39:50 +0100 |
parents | d04017f3d2fa |
children |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 #include "VectorTypes.h" | |
4 | |
5 | |
6 /* 257 */ | |
7 #pragma pack(push, 1) | |
8 struct StationaryLight | |
9 { | |
10 Vec3_short_ vPosition; | |
11 __int16 uRadius; | |
12 unsigned __int8 uLightColorR; | |
13 unsigned __int8 uLightColorG; | |
14 unsigned __int8 uLightColorB; | |
15 char uLightType; | |
16 }; | |
17 #pragma pack(pop) | |
18 | |
19 | |
20 | |
21 | |
22 #pragma pack(push, 1) | |
23 struct MobileLight | |
24 { | |
25 Vec3_short_ vPosition; | |
26 __int16 uRadius; | |
27 unsigned __int8 uLightColorR; | |
28 unsigned __int8 uLightColorG; | |
29 unsigned __int8 uLightColorB; | |
30 char uLightType; | |
31 __int16 field_C; | |
32 __int16 uSectorID; | |
33 __int16 field_10; | |
34 }; | |
35 #pragma pack(pop) | |
36 | |
37 | |
38 | |
39 /* | |
40 #pragma pack(push, 1) | |
41 struct LightStack<T> | |
42 { | |
43 int field_0; | |
44 char T[400]; | |
45 unsigned int uNumLightsActive; | |
46 }; | |
47 #pragma pack(pop)*/ | |
48 | |
49 | |
50 | |
51 /* 260 */ | |
52 #pragma pack(push, 1) | |
53 struct LightsStack_StationaryLight_ | |
54 { | |
55 //----- (004AD385) -------------------------------------------------------- | |
56 LightsStack_StationaryLight_() | |
57 { | |
58 uNumLightsActive = 0; | |
59 } | |
60 | |
61 //----- (004AD395) -------------------------------------------------------- | |
62 virtual ~LightsStack_StationaryLight_() | |
63 { | |
64 uNumLightsActive = 0; | |
65 } | |
66 | |
67 //----- (004AD39D) -------------------------------------------------------- | |
68 inline unsigned int GetNumLights() | |
69 { | |
70 return uNumLightsActive; | |
71 } | |
72 | |
73 //----- (004AD3C8) -------------------------------------------------------- | |
2337
d04017f3d2fa
LightsStack_StationaryLight_::AddLight moved to LightStack.cpp
Grumpy7
parents:
1980
diff
changeset
|
74 bool AddLight(__int16 x, __int16 y, __int16 z, __int16 a5, unsigned char r, unsigned char g, unsigned char b, char uLightType); |
0 | 75 |
76 | |
77 | |
1458 | 78 //void ( ***vdestructor_ptr)(LightsStack_StationaryLight_ *, bool); |
0 | 79 StationaryLight pLights[400]; |
80 unsigned int uNumLightsActive; | |
81 }; | |
82 #pragma pack(pop) | |
83 | |
84 | |
85 | |
86 | |
87 /* 261 */ | |
88 #pragma pack(push, 1) | |
89 struct LightsStack_MobileLight_ | |
90 { | |
91 //----- (00467D45) -------------------------------------------------------- | |
92 inline LightsStack_MobileLight_() | |
93 { | |
94 this->uNumLightsActive = 0; | |
95 //this->vdestructor_ptr = &pLightsStack_MobileLight__pvdtor; | |
96 } | |
97 //----- (00467D55) -------------------------------------------------------- | |
98 virtual ~LightsStack_MobileLight_() | |
99 { | |
100 this->uNumLightsActive = 0; | |
101 } | |
102 | |
103 bool AddLight(__int16 x, __int16 y, __int16 z, __int16 uSectorID, int uRadius, unsigned __int8 r, unsigned __int8 g, unsigned __int8 b, char a10); | |
104 | |
105 | |
106 | |
1458 | 107 //void ( ***vdestructor_ptr)(LightsStack_MobileLight_ *, bool); |
0 | 108 MobileLight pLights[400]; |
109 unsigned int uNumLightsActive; | |
110 }; | |
111 #pragma pack(pop) |