terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Lighting.cs
Go to the documentation of this file.
1using System;
10
11namespace Terraria
12{
13 // Token: 0x020003EF RID: 1007
14 public class Lighting
15 {
16 // Token: 0x1700038B RID: 907
17 // (get) Token: 0x06001B78 RID: 7032 RVA: 0x000021DB File Offset: 0x000003DB
18 // (set) Token: 0x06001B79 RID: 7033 RVA: 0x000A8B18 File Offset: 0x000A6D18
19 private static LightMode _mode
20 {
21 get
22 {
23 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
24 }
25 set
26 {
27 }
28 }
29
30 // Token: 0x1700038C RID: 908
31 // (get) Token: 0x06001B7A RID: 7034 RVA: 0x000A8B28 File Offset: 0x000A6D28
33 {
34 get
35 {
36 LightingEngine lightingEngine;
37 return lightingEngine;
38 }
39 }
40
41 // Token: 0x1700038D RID: 909
42 // (get) Token: 0x06001B7B RID: 7035 RVA: 0x000A8B38 File Offset: 0x000A6D38
44 {
45 get
46 {
48 return legacyLighting;
49 }
50 }
51
52 // Token: 0x1700038E RID: 910
53 // (get) Token: 0x06001B7C RID: 7036 RVA: 0x000A8B48 File Offset: 0x000A6D48
54 // (set) Token: 0x06001B7D RID: 7037 RVA: 0x000A8B58 File Offset: 0x000A6D58
56 {
57 get
58 {
59 ILightingEngine lightingEngine;
60 return lightingEngine;
61 }
62 set
63 {
64 }
65 }
66
67 // Token: 0x1700038F RID: 911
68 // (get) Token: 0x06001B7E RID: 7038 RVA: 0x000A8B68 File Offset: 0x000A6D68
69 // (set) Token: 0x06001B7F RID: 7039 RVA: 0x000A8B78 File Offset: 0x000A6D78
70 public static float GlobalBrightness
71 {
73 get
74 {
75 /*
76An exception occurred when decompiling this method (06001B7E)
77
78ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Lighting::get_GlobalBrightness()
79
80 ---> System.Exception: Basic block has to end with unconditional control flow.
81{
82 IL_0000:
83 brtrue(IL_0000, ldc.i4:bool(1))
84}
85
86 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
87 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
88 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
89 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
90 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
91 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
92 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
93 --- End of inner exception stack trace ---
94 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
95 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
96*/;
97 }
99 set
100 {
101 if (!true)
102 {
103 }
104 }
105 }
106
107 // Token: 0x06001B80 RID: 7040 RVA: 0x000A8B88 File Offset: 0x000A6D88
108 public static void ResetLighting()
109 {
110 if (!true)
111 {
112 }
113 Main.mapMinX = 0;
114 Main.mapMinY = 0;
115 Main.mapMaxX = 0;
116 Main.mapMaxY = 0;
117 Main.updateMap = false;
118 Main.mapTime = 0;
119 if (!true)
120 {
121 }
123 }
124
125 // Token: 0x17000390 RID: 912
126 // (get) Token: 0x06001B81 RID: 7041 RVA: 0x000A8BC8 File Offset: 0x000A6DC8
127 // (set) Token: 0x06001B82 RID: 7042 RVA: 0x000A8BE0 File Offset: 0x000A6DE0
128 public static LightMode Mode
129 {
130 get
131 {
132 if (!true)
133 {
134 }
135 return Lighting._mode;
136 }
137 set
138 {
139 if (!true)
140 {
141 }
144 }
145 }
146
147 // Token: 0x17000391 RID: 913
148 // (get) Token: 0x06001B83 RID: 7043 RVA: 0x000A8C70 File Offset: 0x000A6E70
149 public static bool NotRetro
150 {
151 get
152 {
153 /*
154An exception occurred when decompiling this method (06001B83)
155
156ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Lighting::get_NotRetro()
157
158 ---> System.Exception: Basic block has to end with unconditional control flow.
159{
160 IL_0003:
161 stloc:LightMode(var_0_08, callgetter:LightMode(Lighting::get__mode))
162}
163
164 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
165 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
166 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
167 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
168 --- End of inner exception stack trace ---
169 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
170 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
171*/;
172 }
173 }
174
175 // Token: 0x17000392 RID: 914
176 // (get) Token: 0x06001B84 RID: 7044 RVA: 0x000A8C88 File Offset: 0x000A6E88
177 public static bool UsingNewLighting
178 {
179 get
180 {
181 /*
182An exception occurred when decompiling this method (06001B84)
183
184ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Lighting::get_UsingNewLighting()
185
186 ---> System.Exception: Basic block has to end with unconditional control flow.
187{
188 IL_0003:
189 stloc:LightMode(var_0_08, callgetter:LightMode(Lighting::get_Mode))
190}
191
192 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
193 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
194 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
195 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
196 --- End of inner exception stack trace ---
197 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
198 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
199*/;
200 }
201 }
202
203 // Token: 0x17000393 RID: 915
204 // (get) Token: 0x06001B85 RID: 7045 RVA: 0x000A8CA0 File Offset: 0x000A6EA0
205 public static bool UpdateEveryFrame
206 {
207 get
208 {
209 return true;
210 }
211 }
212
213 // Token: 0x06001B86 RID: 7046 RVA: 0x000A8CB0 File Offset: 0x000A6EB0
214 public static void Initialize(bool resized = false)
215 {
216 if (!true)
217 {
218 }
219 if (!true)
220 {
221 }
224 if (Lighting._activeEngine != null)
225 {
226 return;
227 }
228 if (!true)
229 {
230 }
231 Lighting.Mode = LightMode.Color;
232 }
233
234 // Token: 0x06001B87 RID: 7047 RVA: 0x000A8CE8 File Offset: 0x000A6EE8
235 public static void LightTiles(int firstX, int lastX, int firstY, int lastY)
236 {
237 int num = 1;
238 if (num == 0)
239 {
240 }
241 bool gameMenu = Main.gameMenu;
242 if (num == 0)
243 {
244 }
245 Main.render = true;
246 if (num == 0)
247 {
248 }
251 }
252
253 // Token: 0x06001B88 RID: 7048 RVA: 0x000A8D1C File Offset: 0x000A6F1C
254 private static void UpdateGlobalBrightness()
255 {
256 if (!true)
257 {
258 }
259 int num = 1;
260 if (num == 0)
261 {
262 }
263 int num2 = 39322;
265 if (num == 0)
266 {
267 }
268 int myPlayer = Main.myPlayer;
269 if (num != 0)
270 {
271 if (num == 0)
272 {
273 }
274 int num3 = 1;
275 if (num3 == 0)
276 {
277 }
278 int num4 = 16256;
280 }
281 }
282
283 // Token: 0x06001B89 RID: 7049 RVA: 0x000A8D68 File Offset: 0x000A6F68
284 public static float Brightness(int x, int y)
285 {
286 /*
287An exception occurred when decompiling this method (06001B89)
288
289ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Lighting::Brightness(System.Int32,System.Int32)
290
291 ---> System.Exception: Basic block has to end with unconditional control flow.
292{
293 IL_0003:
294 stloc:ILightingEngine(var_0_08, callgetter:ILightingEngine(Lighting::get__activeEngine))
295 brtrue(IL_0000, ldc.i4:bool(1))
296}
297
298 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
299 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
300 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
301 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
302 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
303 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
304 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
305 --- End of inner exception stack trace ---
306 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
307 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
308*/;
309 }
310
311 // Token: 0x06001B8A RID: 7050 RVA: 0x000A8D80 File Offset: 0x000A6F80
312 public static Vector3 GetSubLight(Vector2 position)
313 {
314 /*
315An exception occurred when decompiling this method (06001B8A)
316
317ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector3 Terraria.Lighting::GetSubLight(Microsoft.Xna.Framework.Vector2)
318
319 ---> System.Exception: Basic block has to end with unconditional control flow.
320{
321 IL_0003:
322 stloc:ILightingEngine(var_4_0C, callgetter:ILightingEngine(Lighting::get__activeEngine))
323 stloc:ILightingEngine(var_5_13, callgetter:ILightingEngine(Lighting::get__activeEngine))
324 stloc:ILightingEngine(var_6_1A, callgetter:ILightingEngine(Lighting::get__activeEngine))
325 stloc:ILightingEngine(var_7_21, callgetter:ILightingEngine(Lighting::get__activeEngine))
326}
327
328 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
329 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
330 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
331 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
332 --- End of inner exception stack trace ---
333 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
334 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
335*/;
336 }
337
338 // Token: 0x06001B8B RID: 7051 RVA: 0x000A8DB8 File Offset: 0x000A6FB8
339 public static void AddLight(Vector2 position, Vector3 rgb)
340 {
341 if (!true)
342 {
343 }
344 }
345
346 // Token: 0x06001B8C RID: 7052 RVA: 0x000A8DC8 File Offset: 0x000A6FC8
347 public static void AddLight(Vector2 position, float r, float g, float b)
348 {
349 if (!true)
350 {
351 }
352 }
353
354 // Token: 0x06001B8D RID: 7053 RVA: 0x000A8DD8 File Offset: 0x000A6FD8
355 public static void AddLight(int i, int j, int torchID, float lightAmount)
356 {
357 int num = 1;
358 if (num == 0)
359 {
360 }
361 if (num == 0)
362 {
363 }
364 }
365
366 // Token: 0x06001B8E RID: 7054 RVA: 0x000A8DF4 File Offset: 0x000A6FF4
367 public static void AddLight(Vector2 position, int torchID)
368 {
369 int num = 1;
370 if (num == 0)
371 {
372 }
373 if (num == 0)
374 {
375 }
376 }
377
378 // Token: 0x06001B8F RID: 7055 RVA: 0x000A8E0C File Offset: 0x000A700C
379 public static void AddLight(int i, int j, float r, float g, float b)
380 {
381 int num = 1;
382 if (num == 0)
383 {
384 }
385 if (num == 0)
386 {
387 if (num == 0)
388 {
389 }
391 if (num == 0)
392 {
393 }
394 return;
395 }
396 }
397
398 // Token: 0x06001B90 RID: 7056 RVA: 0x000A8E34 File Offset: 0x000A7034
399 public static void NextLightMode()
400 {
401 int num = 1;
402 if (num == 0)
403 {
404 }
406 if (num == 0)
407 {
408 }
410 Lighting.Clear();
411 }
412
413 // Token: 0x06001B91 RID: 7057 RVA: 0x000A8E64 File Offset: 0x000A7064
414 public static void Clear()
415 {
416 if (!true)
417 {
418 }
420 }
421
422 // Token: 0x06001B92 RID: 7058 RVA: 0x000A8E7C File Offset: 0x000A707C
424 {
425 int num = 1;
426 if (num == 0)
427 {
428 }
429 bool gameMenu = Main.gameMenu;
430 if (num == 0)
431 {
432 }
433 if (num == 0)
434 {
435 }
437 if (!true)
438 {
439 return;
440 }
441 }
442
443 // Token: 0x06001B93 RID: 7059 RVA: 0x000A8EA8 File Offset: 0x000A70A8
445 {
446 /*
447An exception occurred when decompiling this method (06001B93)
448
449ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.Lighting::GetColor(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Graphics.Color)
450
451 ---> System.Exception: Basic block has to end with unconditional control flow.
452{
453 IL_0003:
454 stloc:bool(var_1_0A, callgetter:bool(Main::get_gameMenu))
455 stloc:ILightingEngine(var_2_10, callgetter:ILightingEngine(Lighting::get__activeEngine))
456}
457
458 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
459 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
460 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
461 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
462 --- End of inner exception stack trace ---
463 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
464 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
465*/;
466 }
467
468 // Token: 0x06001B94 RID: 7060 RVA: 0x000A8EC8 File Offset: 0x000A70C8
469 public static Color GetColor(int x, int y, Color oldColor)
470 {
471 /*
472An exception occurred when decompiling this method (06001B94)
473
474ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.Lighting::GetColor(System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.Color)
475
476 ---> System.Exception: Basic block has to end with unconditional control flow.
477{
478 IL_0003:
479 stloc:bool(var_1_0A, callgetter:bool(Main::get_gameMenu))
480 stloc:ILightingEngine(var_2_10, callgetter:ILightingEngine(Lighting::get__activeEngine))
481}
482
483 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
484 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
485 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
486 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
487 --- End of inner exception stack trace ---
488 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
489 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
490*/;
491 }
492
493 // Token: 0x06001B95 RID: 7061 RVA: 0x000A8EE8 File Offset: 0x000A70E8
494 public static Color GetColorClamped(int x, int y, Color oldColor)
495 {
496 if (!true)
497 {
498 }
499 bool gameMenu = Main.gameMenu;
501 if (!true)
502 {
503 return;
504 }
505 }
506
507 // Token: 0x06001B96 RID: 7062 RVA: 0x000A8F10 File Offset: 0x000A7110
508 public static Vector3 GetColorVector3(int x, int y)
509 {
510 /*
511An exception occurred when decompiling this method (06001B96)
512
513ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector3 Terraria.Lighting::GetColorVector3(System.Int32,System.Int32)
514
515 ---> System.Exception: Basic block has to end with unconditional control flow.
516{
517 IL_0013:
518 stloc:ILightingEngine(var_3_18, callgetter:ILightingEngine(Lighting::get__activeEngine))
519}
520
521 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
522 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
523 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
524 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
525 --- End of inner exception stack trace ---
526 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
527 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
528*/;
529 }
530
531 // Token: 0x06001B97 RID: 7063 RVA: 0x000A8F38 File Offset: 0x000A7138
533 {
534 /*
535An exception occurred when decompiling this method (06001B97)
536
537ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Graphics.Light.LightMap Terraria.Lighting::GetLightMap(Microsoft.Xna.Framework.Rectangle)
538
539 ---> System.Exception: Basic block has to end with unconditional control flow.
540{
541 IL_0003:
542 stloc:ILightingEngine(var_0_08, callgetter:ILightingEngine(Lighting::get__activeEngine))
543}
544
545 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
546 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
547 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
548 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
549 --- End of inner exception stack trace ---
550 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
551 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
552*/;
553 }
554
555 // Token: 0x06001B98 RID: 7064 RVA: 0x000A8F50 File Offset: 0x000A7150
556 public static Rectangle GetScanRegion()
557 {
558 /*
559An exception occurred when decompiling this method (06001B98)
560
561ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle Terraria.Lighting::GetScanRegion()
562
563 ---> System.Exception: Basic block has to end with unconditional control flow.
564{
565 IL_0003:
566 stloc:ILightingEngine(var_0_08, callgetter:ILightingEngine(Lighting::get__activeEngine))
567}
568
569 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
570 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
571 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
572 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
573 --- End of inner exception stack trace ---
574 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
575 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
576*/;
577 }
578
579 // Token: 0x06001B99 RID: 7065 RVA: 0x000A8F68 File Offset: 0x000A7168
580 public static Color GetColor(int x, int y)
581 {
582 int num = 1;
583 if (num == 0)
584 {
585 }
586 bool gameMenu = Main.gameMenu;
587 if (num == 0)
588 {
589 }
590 if (num == 0)
591 {
592 }
594 if (!true)
595 {
596 return;
597 }
598 }
599
600 // Token: 0x06001B9A RID: 7066 RVA: 0x000A8FA8 File Offset: 0x000A71A8
601 public static void GetColor9Slice(int centerX, int centerY, Color[] slices)
602 {
603 if (!true)
604 {
605 }
607 }
608
609 // Token: 0x06001B9B RID: 7067 RVA: 0x000A8FD4 File Offset: 0x000A71D4
610 [Il2CppSetOption(Option.NullChecks, false)]
611 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
612 public static void GetColor9Slice(int x, int y, Vector3[] slices)
613 {
614 if (!true)
615 {
616 }
618 }
619
620 // Token: 0x06001B9C RID: 7068 RVA: 0x000A9060 File Offset: 0x000A7260
621 public static void GetCornerColors(int centerX, int centerY, [Out] VertexColors vertices, float scale = 1f)
622 {
623 if (!true)
624 {
625 }
627 }
628
629 // Token: 0x06001B9D RID: 7069 RVA: 0x000A90D4 File Offset: 0x000A72D4
630 public static void GetColor4Slice(int centerX, int centerY, Color[] slices)
631 {
632 if (!true)
633 {
634 }
636 }
637
638 // Token: 0x06001B9E RID: 7070 RVA: 0x000A9174 File Offset: 0x000A7374
639 public static void GetColor4Slice(int x, int y, Vector3[] slices)
640 {
641 if (!true)
642 {
643 }
645 }
646
647 // Token: 0x06001B9F RID: 7071 RVA: 0x000A91B8 File Offset: 0x000A73B8
648 public Lighting()
649 {
650 }
651
652 // Token: 0x06001BA0 RID: 7072 RVA: 0x000A91CC File Offset: 0x000A73CC
653 // Note: this type is marked as 'beforefieldinit'.
654 static Lighting()
655 {
656 }
657
658 // Token: 0x040028CD RID: 10445
659 private const float DEFAULT_GLOBAL_BRIGHTNESS = 1.2f;
660
661 // Token: 0x040028CE RID: 10446
662 private const float BLIND_GLOBAL_BRIGHTNESS = 1f;
663
664 // Token: 0x040028CF RID: 10447
666 private static float <GlobalBrightness>k__BackingField;
667
668 // Token: 0x040028D0 RID: 10448
669 [Obsolete]
670 public static int OffScreenTiles;
671 }
672}
class f__AnonymousType0<< Count > j__TPar
static Lighting()
Definition Lighting.cs:654
const float BLIND_GLOBAL_BRIGHTNESS
Definition Lighting.cs:662
static ILightingEngine _activeEngine
Definition Lighting.cs:56
static void AddLight(Vector2 position, float r, float g, float b)
Definition Lighting.cs:347
static Color GetColor(Point tileCoords)
Definition Lighting.cs:423
static void NextLightMode()
Definition Lighting.cs:399
static void AddLight(int i, int j, float r, float g, float b)
Definition Lighting.cs:379
static void GetColor4Slice(int centerX, int centerY, Color[] slices)
Definition Lighting.cs:630
static void Initialize(bool resized=false)
Definition Lighting.cs:214
static bool UsingNewLighting
Definition Lighting.cs:178
static Color GetColor(Point tileCoords, Color originalColor)
Definition Lighting.cs:444
static Color GetColorClamped(int x, int y, Color oldColor)
Definition Lighting.cs:494
static bool NotRetro
Definition Lighting.cs:150
static LightMap GetLightMap([Out] Rectangle lightMapRegion)
Definition Lighting.cs:532
static LightingEngine NewEngine
Definition Lighting.cs:33
static void Clear()
Definition Lighting.cs:414
static LegacyLighting LegacyEngine
Definition Lighting.cs:44
static void GetColor9Slice(int x, int y, Vector3[] slices)
Definition Lighting.cs:612
static void GetColor4Slice(int x, int y, Vector3[] slices)
Definition Lighting.cs:639
static float< GlobalBrightness > k__BackingField
Definition Lighting.cs:666
static void ResetLighting()
Definition Lighting.cs:108
static LightMode Mode
Definition Lighting.cs:129
static void LightTiles(int firstX, int lastX, int firstY, int lastY)
Definition Lighting.cs:235
static Vector3 GetSubLight(Vector2 position)
Definition Lighting.cs:312
static bool UpdateEveryFrame
Definition Lighting.cs:206
static Color GetColor(int x, int y, Color oldColor)
Definition Lighting.cs:469
static float Brightness(int x, int y)
Definition Lighting.cs:284
const float DEFAULT_GLOBAL_BRIGHTNESS
Definition Lighting.cs:659
static float GlobalBrightness
Definition Lighting.cs:71
static void UpdateGlobalBrightness()
Definition Lighting.cs:254
static void AddLight(Vector2 position, int torchID)
Definition Lighting.cs:367
static void GetCornerColors(int centerX, int centerY, [Out] VertexColors vertices, float scale=1f)
Definition Lighting.cs:621
static Rectangle GetScanRegion()
Definition Lighting.cs:556
static void GetColor9Slice(int centerX, int centerY, Color[] slices)
Definition Lighting.cs:601
static int OffScreenTiles
Definition Lighting.cs:670
static LightMode _mode
Definition Lighting.cs:20
static Vector3 GetColorVector3(int x, int y)
Definition Lighting.cs:508
static void AddLight(Vector2 position, Vector3 rgb)
Definition Lighting.cs:339
static Color GetColor(int x, int y)
Definition Lighting.cs:580
static void AddLight(int i, int j, int torchID, float lightAmount)
Definition Lighting.cs:355
static bool NetHostOnly
Definition Main.cs:5482
static int myPlayer
Definition Main.cs:2337
static bool gameMenu
Definition Main.cs:2673