terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
LegacyLighting.cs
Go to the documentation of this file.
1using System;
8using Terraria.Map;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000773")]
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x17000796")]
17 public int Mode
18 {
20 [global::Cpp2ILInjected.Token(Token = "0x6003E76")]
21 [global::Cpp2ILInjected.Address(RVA = "0x14B6E18", Offset = "0x14B6E18", Length = "0x8")]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
23 get
24 {
25 throw null;
26 }
28 [global::Cpp2ILInjected.Token(Token = "0x6003E77")]
29 [global::Cpp2ILInjected.Address(RVA = "0x14B6E20", Offset = "0x14B6E20", Length = "0x8")]
30 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
31 set
32 {
33 throw null;
34 }
35 }
36
37 [global::Cpp2ILInjected.Token(Token = "0x17000797")]
39 {
40 [global::Cpp2ILInjected.Token(Token = "0x6003E78")]
41 [global::Cpp2ILInjected.Address(RVA = "0x14B6E28", Offset = "0x14B6E28", Length = "0x10")]
42 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
43 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
44 get
45 {
46 throw null;
47 }
48 }
49
50 [global::Cpp2ILInjected.Token(Token = "0x6003E79")]
51 [global::Cpp2ILInjected.Address(RVA = "0x14B6E38", Offset = "0x14B6E38", Length = "0xD0")]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LocalUserGameState), Member = "get_LegacyEngine", ReturnType = typeof(LegacyLighting))]
53 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = ".ctor", ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileLightScanner), Member = ".ctor", ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
58 public LegacyLighting(Camera camera)
59 {
60 throw null;
61 }
62
63 [global::Cpp2ILInjected.Token(Token = "0x6003E7A")]
64 [global::Cpp2ILInjected.Address(RVA = "0x14B6F08", Offset = "0x14B6F08", Length = "0x10")]
65 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
67 {
68 throw null;
69 }
70
71 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
72 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
73 [global::Cpp2ILInjected.Token(Token = "0x6003E7B")]
74 [global::Cpp2ILInjected.Address(RVA = "0x14B6F18", Offset = "0x14B6F18", Length = "0xD4")]
75 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Contains", MemberParameters = new object[]
77 {
78 typeof(int),
79 typeof(int)
80 }, ReturnType = typeof(bool))]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "get_Item", MemberParameters = new object[]
82 {
83 typeof(int),
84 typeof(int)
85 }, ReturnType = typeof(Vector3))]
86 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
87 public Vector3 GetColor(int x, int y)
88 {
89 throw null;
90 }
91
92 [global::Cpp2ILInjected.Token(Token = "0x6003E7C")]
93 [global::Cpp2ILInjected.Address(RVA = "0x14B6FEC", Offset = "0x14B6FEC", Length = "0x134")]
94 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
95 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Lighting), Member = "Initialize", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = ".ctor", ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_UnscaledSize", ReturnType = typeof(Vector2))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "SetSize", MemberParameters = new object[]
100 {
101 typeof(int),
102 typeof(int)
103 }, ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
105 public void Rebuild()
106 {
107 throw null;
108 }
109
110 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
111 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
112 [global::Cpp2ILInjected.Token(Token = "0x6003E7D")]
113 [global::Cpp2ILInjected.Address(RVA = "0x14B7120", Offset = "0x14B7120", Length = "0x2F0")]
114 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
115 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
117 {
118 typeof(int),
119 typeof(int)
120 }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Contains", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(bool))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "get_Count", ReturnType = typeof(int))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "TryGetValue", MemberParameters = new object[]
124 {
125 typeof(int),
126 typeof(ref short)
127 }, ReturnType = typeof(bool))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting.ColorTriplet), Member = ".ctor", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "Add", MemberParameters = new object[]
131 {
132 typeof(int),
133 typeof(short)
134 }, ReturnType = typeof(void))]
135 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
136 public void AddLight(int x, int y, Vector3 color)
137 {
138 throw null;
139 }
140
141 [global::Cpp2ILInjected.Token(Token = "0x6003E7E")]
142 [global::Cpp2ILInjected.Address(RVA = "0x14B7410", Offset = "0x14B7410", Length = "0x390")]
143 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
144 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_renderCount", ReturnType = typeof(int))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_renderCount", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_UnscaledSize", ReturnType = typeof(Vector2))]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenLastPosition", ReturnType = typeof(Vector2))]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "DoColors", ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "Present", ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_renderNow", ReturnType = typeof(bool))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapTime", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapDelay", ReturnType = typeof(int))]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapDelay", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapTime", ReturnType = typeof(int))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapEnabled", ReturnType = typeof(bool))]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "ExportToMiniMap", ReturnType = typeof(void))]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "UpdateLightToSkyColor", MemberParameters = new object[]
159 {
160 typeof(float),
161 typeof(float),
162 typeof(float)
163 }, ReturnType = typeof(void))]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "PreRenderPhase", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
165 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 25)]
167 {
168 throw null;
169 }
170
171 [global::Cpp2ILInjected.Token(Token = "0x6003E7F")]
172 [global::Cpp2ILInjected.Address(RVA = "0x14B8C50", Offset = "0x14B8C50", Length = "0x10")]
173 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
174 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
176 {
177 throw null;
178 }
179
180 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
181 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
182 [global::Cpp2ILInjected.Token(Token = "0x6003E80")]
183 [global::Cpp2ILInjected.Address(RVA = "0x14B78E0", Offset = "0x14B78E0", Length = "0xA84")]
184 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
185 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapEnabled", ReturnType = typeof(bool))]
188 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapReady", ReturnType = typeof(bool))]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
190 {
191 typeof(int),
192 typeof(int),
193 typeof(int),
194 typeof(int)
195 }, ReturnType = typeof(void))]
196 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Inflate", MemberParameters = new object[]
197 {
198 typeof(int),
199 typeof(int)
200 }, ReturnType = typeof(void))]
201 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Intersect", MemberParameters = new object[]
202 {
205 }, ReturnType = typeof(Rectangle))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapMinX", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
207 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapMinY", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
208 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
209 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapMaxX", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapMaxY", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
212 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "GetChunkTile", MemberParameters = new object[]
214 {
215 typeof(int),
216 typeof(int),
218 }, ReturnType = typeof(MapTile*))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "IsThisAMushroomTree", MemberParameters = new object[]
220 {
221 typeof(int),
222 typeof(int)
223 }, ReturnType = typeof(bool))]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_UnderworldLayer", ReturnType = typeof(int))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "GetTileBaseOption", MemberParameters = new object[]
226 {
227 typeof(int),
228 typeof(ushort),
229 typeof(int),
230 typeof(int),
231 typeof(ref int)
232 }, ReturnType = typeof(void))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SceneMetrics", ReturnType = typeof(SceneMetrics))]
234 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ushort, bool>), Member = "TryGetValue", MemberParameters = new object[]
235 {
236 typeof(ushort),
237 typeof(ref bool)
238 }, ReturnType = typeof(bool))]
239 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_updateMap", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
240 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 33)]
241 private unsafe void ExportToMiniMap()
242 {
243 throw null;
244 }
245
246 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
247 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
248 [global::Cpp2ILInjected.Token(Token = "0x6003E81")]
249 [global::Cpp2ILInjected.Address(RVA = "0x14B8364", Offset = "0x14B8364", Length = "0x3C4")]
250 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
251 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
252 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
253 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Clamp", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
254 {
255 typeof(int),
256 typeof(int),
257 typeof(int)
258 }, ReturnType = "T")]
259 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
260 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
261 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
262 private void UpdateLightToSkyColor(float tileR, float tileG, float tileB)
263 {
264 throw null;
265 }
266
267 [global::Cpp2ILInjected.Token(Token = "0x6003E82")]
268 [global::Cpp2ILInjected.Address(RVA = "0x14B783C", Offset = "0x14B783C", Length = "0xA4")]
269 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
270 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
271 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Swap", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
272 {
273 typeof(ref object),
274 typeof(ref object)
275 }, ReturnType = typeof(void))]
276 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Swap", MemberTypeParameters = new object[] { typeof(Rectangle) }, MemberParameters = new object[]
277 {
280 }, ReturnType = typeof(void))]
281 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
282 private void Present()
283 {
284 throw null;
285 }
286
287 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
288 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
289 [global::Cpp2ILInjected.Token(Token = "0x6003E83")]
290 [global::Cpp2ILInjected.Address(RVA = "0x14B8C60", Offset = "0x14B8C60", Length = "0x24")]
291 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
292 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "Clear", ReturnType = typeof(void))]
293 public void Clear()
294 {
295 throw null;
296 }
297
298 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
299 [Il2CppSetOption(/*Failed to decode CustomAttribute blob!*/)]
300 [global::Cpp2ILInjected.Token(Token = "0x6003E84")]
301 [global::Cpp2ILInjected.Address(RVA = "0x14B8728", Offset = "0x14B8728", Length = "0x528")]
302 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
303 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
304 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
305 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = ".ctor", ReturnType = typeof(void))]
306 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "Start", ReturnType = typeof(void))]
307 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "Clear", ReturnType = typeof(void))]
308 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Inflate", MemberParameters = new object[]
309 {
310 typeof(int),
311 typeof(int)
312 }, ReturnType = typeof(void))]
313 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "SetSize", MemberParameters = new object[]
314 {
315 typeof(int),
316 typeof(int)
317 }, ReturnType = typeof(void))]
318 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SceneMetrics", ReturnType = typeof(SceneMetrics))]
319 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle?), Member = ".ctor", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
320 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_LocalPlayer", ReturnType = typeof(Player))]
321 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
322 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2?), Member = ".ctor", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(void))]
323 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SceneMetrics), Member = "ScanAndExportToMain", MemberParameters = new object[] { typeof(SceneMetricsScanSettings) }, ReturnType = typeof(void))]
324 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileLightScanner), Member = "Update", ReturnType = typeof(void))]
325 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileLightScanner), Member = "ExportTo", MemberParameters = new object[]
326 {
328 typeof(LightMap)
329 }, ReturnType = typeof(void))]
330 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "get_Count", ReturnType = typeof(int))]
331 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "GetEnumerator", ReturnType = "Enumerator<TKey, TValue>")]
332 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
333 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
335 {
336 typeof(int),
337 typeof(int)
338 }, ReturnType = typeof(void))]
339 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Contains", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(bool))]
340 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
341 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, short>), Member = "Clear", ReturnType = typeof(void))]
342 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_renderCount", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
343 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "get_Elapsed", ReturnType = typeof(TimeSpan))]
344 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimeSpan), Member = "get_TotalMilliseconds", ReturnType = typeof(double))]
345 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimeLogger), Member = "LightingTime", MemberParameters = new object[]
346 {
347 typeof(int),
348 typeof(double)
349 }, ReturnType = typeof(void))]
350 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "DoColors", ReturnType = typeof(void))]
351 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 28)]
353 {
354 throw null;
355 }
356
357 [global::Cpp2ILInjected.Token(Token = "0x6003E85")]
358 [global::Cpp2ILInjected.Address(RVA = "0x14B8C84", Offset = "0x14B8C84", Length = "0x2F4")]
359 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "DoColors", ReturnType = typeof(void))]
360 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
361 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "set_LightDecayThroughAir", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
362 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "set_LightDecayThroughSolid", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
363 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
364 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "get_LightDecayThroughAir", ReturnType = typeof(float))]
365 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "get_LightDecayThroughSolid", ReturnType = typeof(float))]
366 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector3), Member = ".ctor", MemberParameters = new object[]
367 {
368 typeof(float),
369 typeof(float),
370 typeof(float)
371 }, ReturnType = typeof(void))]
372 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "set_LightDecayThroughWater", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = typeof(void))]
373 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "get_LightDecayThroughWater", ReturnType = typeof(Vector3))]
374 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "set_LightDecayThroughHoney", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = typeof(void))]
375 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
376 private void UpdateLightDecay()
377 {
378 throw null;
379 }
380
381 [global::Cpp2ILInjected.Token(Token = "0x6003E86")]
382 [global::Cpp2ILInjected.Address(RVA = "0x14B77A0", Offset = "0x14B77A0", Length = "0x9C")]
383 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
384 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
385 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "PreRenderPhase", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
386 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
387 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyLighting), Member = "UpdateLightDecay", ReturnType = typeof(void))]
388 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_renderCount", ReturnType = typeof(int))]
389 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "ExecutePartialBlur", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
390 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
391 private void DoColors()
392 {
393 throw null;
394 }
395
396 // Note: this type is marked as 'beforefieldinit'.
397 [global::Cpp2ILInjected.Token(Token = "0x6003E87")]
398 [global::Cpp2ILInjected.Address(RVA = "0x14B8F78", Offset = "0x14B8F78", Length = "0x9C")]
399 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
400 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
401 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
403 {
404 throw null;
405 }
406
407 [global::Cpp2ILInjected.Token(Token = "0x4007D2D")]
408 public static int RenderPhases;
409
410 [global::Cpp2ILInjected.Token(Token = "0x4007D2E")]
411 private static short tempLightOffset;
412
413 [global::Cpp2ILInjected.Token(Token = "0x4007D2F")]
415
416 [global::Cpp2ILInjected.Token(Token = "0x4007D30")]
418
419 [global::Cpp2ILInjected.Token(Token = "0x4007D31")]
420 private const int AREA_PADDING = 20;
421
422 [global::Cpp2ILInjected.Token(Token = "0x4007D32")]
423 private const int NON_VISIBLE_PADDING = 0;
424
425 [global::Cpp2ILInjected.Token(Token = "0x4007D33")]
426 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
427 private float _oldSkyColor;
428
429 [global::Cpp2ILInjected.Token(Token = "0x4007D34")]
430 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
431 private float _skyColor;
432
433 [global::Cpp2ILInjected.Token(Token = "0x4007D35")]
434 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
436
437 [global::Cpp2ILInjected.Token(Token = "0x4007D36")]
438 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
440
441 [global::Cpp2ILInjected.Token(Token = "0x4007D37")]
442 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
444
445 [global::Cpp2ILInjected.Token(Token = "0x4007D38")]
446 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
448
449 [global::Cpp2ILInjected.Token(Token = "0x4007D39")]
450 private const int MAX_TEMP_LIGHTS = 2000;
451
452 [global::Cpp2ILInjected.Token(Token = "0x4007D3A")]
453 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
455
456 [global::Cpp2ILInjected.Token(Token = "0x4007D3B")]
457 [global::Cpp2ILInjected.FieldOffset(Offset = "0x50")]
459
461 [global::Cpp2ILInjected.Token(Token = "0x4007D3C")]
462 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
463 private int <Mode>k__BackingField;
464
465 [global::Cpp2ILInjected.Token(Token = "0x4007D3D")]
466 [global::Cpp2ILInjected.FieldOffset(Offset = "0x5C")]
468
469 [global::Cpp2ILInjected.Token(Token = "0x2000774")]
470 private class ColorTriplet
471 {
472 [global::Cpp2ILInjected.Token(Token = "0x6003E88")]
473 [global::Cpp2ILInjected.Address(RVA = "0x73DA74", Offset = "0x73DA74", Length = "0x3C")]
474 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
475 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
476 public ColorTriplet(float R, float G, float B)
477 {
478 throw null;
479 }
480
481 [global::Cpp2ILInjected.Token(Token = "0x6003E89")]
482 [global::Cpp2ILInjected.Address(RVA = "0x73DAB0", Offset = "0x73DAB0", Length = "0x2C")]
483 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "AddLight", MemberParameters = new object[]
484 {
485 typeof(int),
486 typeof(int),
488 }, ReturnType = typeof(void))]
489 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
490 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
492 {
493 throw null;
494 }
495
496 [global::Cpp2ILInjected.Token(Token = "0x4007D3E")]
497 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
498 public float R;
499
500 [global::Cpp2ILInjected.Token(Token = "0x4007D3F")]
501 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
502 public float G;
503
504 [global::Cpp2ILInjected.Token(Token = "0x4007D40")]
505 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
506 public float B;
507 }
508 }
509}
class f__AnonymousType0<< Count > j__TPar
static Dictionary< int, short > tempLights
LightMap GetLightMap(out Rectangle lightMapRegion)
void AddLight(int x, int y, Vector3 color)
void UpdateLightToSkyColor(float tileR, float tileG, float tileB)
static List< LegacyLighting.ColorTriplet > tempLightData