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
LightMap.cs
Go to the documentation of this file.
1using System;
8
10{
11 // Token: 0x02000779 RID: 1913
12 public class LightMap
13 {
14 // Token: 0x17000799 RID: 1945
15 // (get) Token: 0x06003EA6 RID: 16038 RVA: 0x0023E28C File Offset: 0x0023C48C
16 // (set) Token: 0x06003EA7 RID: 16039 RVA: 0x0023E2A0 File Offset: 0x0023C4A0
18 {
20 get
21 {
23 }
25 set
26 {
28 }
29 }
30
31 // Token: 0x1700079A RID: 1946
32 // (get) Token: 0x06003EA8 RID: 16040 RVA: 0x0023E2B4 File Offset: 0x0023C4B4
33 // (set) Token: 0x06003EA9 RID: 16041 RVA: 0x0023E2C8 File Offset: 0x0023C4C8
34 public int Width
35 {
37 get
38 {
39 return this.<Width>k__BackingField;
40 }
42 private set
43 {
45 }
46 }
47
48 // Token: 0x1700079B RID: 1947
49 // (get) Token: 0x06003EAA RID: 16042 RVA: 0x0023E2DC File Offset: 0x0023C4DC
50 // (set) Token: 0x06003EAB RID: 16043 RVA: 0x0023E2F0 File Offset: 0x0023C4F0
51 public int Height
52 {
54 get
55 {
56 return this.<Height>k__BackingField;
57 }
59 private set
60 {
62 }
63 }
64
65 // Token: 0x1700079C RID: 1948
66 // (get) Token: 0x06003EAC RID: 16044 RVA: 0x0023E304 File Offset: 0x0023C504
67 // (set) Token: 0x06003EAD RID: 16045 RVA: 0x0023E318 File Offset: 0x0023C518
69 {
70 get
71 {
72 /*
73An exception occurred when decompiling this method (06003EAC)
74
75ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Graphics.Light.LightMap::get_LightDecayThroughAir()
76
77 ---> System.Exception: Basic block has to end with unconditional control flow.
78{
79 Block_0:
80 stloc:valuetype Microsoft.Xna.Framework.Vector3[](var_0_06, ldfld:valuetype Microsoft.Xna.Framework.Vector3[](LightMap::_decayColors, ldloc:LightMap(this)))
81}
82
83 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
84 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
85 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
86 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
87 --- End of inner exception stack trace ---
88 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
89 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
90*/;
91 }
92 set
93 {
95 }
96 }
97
98 // Token: 0x1700079D RID: 1949
99 // (get) Token: 0x06003EAE RID: 16046 RVA: 0x0023E32C File Offset: 0x0023C52C
100 // (set) Token: 0x06003EAF RID: 16047 RVA: 0x0023E340 File Offset: 0x0023C540
102 {
103 get
104 {
105 /*
106An exception occurred when decompiling this method (06003EAE)
107
108ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Graphics.Light.LightMap::get_LightDecayThroughSolid()
109
110 ---> System.Exception: Basic block has to end with unconditional control flow.
111{
112 Block_0:
113 stloc:valuetype Microsoft.Xna.Framework.Vector3[](var_0_06, ldfld:valuetype Microsoft.Xna.Framework.Vector3[](LightMap::_decayColors, ldloc:LightMap(this)))
114}
115
116 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
117 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
118 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
119 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
120 --- End of inner exception stack trace ---
121 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
122 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
123*/;
124 }
125 set
126 {
128 }
129 }
130
131 // Token: 0x1700079E RID: 1950
132 // (get) Token: 0x06003EB0 RID: 16048 RVA: 0x0023E354 File Offset: 0x0023C554
133 // (set) Token: 0x06003EB1 RID: 16049 RVA: 0x0023E368 File Offset: 0x0023C568
135 {
136 get
137 {
138 return this._decayColors;
139 }
140 set
141 {
143 }
144 }
145
146 // Token: 0x1700079F RID: 1951
147 // (get) Token: 0x06003EB2 RID: 16050 RVA: 0x0023E37C File Offset: 0x0023C57C
148 // (set) Token: 0x06003EB3 RID: 16051 RVA: 0x0023E390 File Offset: 0x0023C590
150 {
151 get
152 {
153 return this._decayColors;
154 }
155 set
156 {
158 }
159 }
160
161 // Token: 0x170007A0 RID: 1952
162 public Vector3 this[int x, int y]
163 {
164 get
165 {
166 /*
167An exception occurred when decompiling this method (06003EB4)
168
169ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector3 Terraria.Graphics.Light.LightMap::get_Item(System.Int32,System.Int32)
170
171 ---> System.Exception: Basic block has to end with unconditional control flow.
172{
173 Block_0:
174 stloc:int32(var_0_06, ldfld:int32(LightMap::<Height>k__BackingField, ldloc:LightMap(this)))
175 stloc:valuetype Microsoft.Xna.Framework.Vector3[](var_1_0D, ldfld:valuetype Microsoft.Xna.Framework.Vector3[](LightMap::_colors, ldloc:LightMap(this)))
176}
177
178 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
179 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
180 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
181 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
182 --- End of inner exception stack trace ---
183 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
184 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
185*/;
186 }
187 set
188 {
189 int num = this.<Height>k__BackingField;
190 Vector3[] colors = this._colors;
191 }
192 }
193
194 // Token: 0x06003EB6 RID: 16054 RVA: 0x0023E3DC File Offset: 0x0023C5DC
195 public LightMap()
196 {
199 if (!true)
200 {
201 }
206 }
207
208 // Token: 0x06003EB7 RID: 16055 RVA: 0x0023E420 File Offset: 0x0023C620
209 public void GetLight(int x, int y, [Out] Vector3 color)
210 {
211 int num = this.<Height>k__BackingField;
212 Vector3[] colors = this._colors;
213 color.X = colors;
214 color.Z = (float)num;
215 }
216
217 // Token: 0x06003EB8 RID: 16056 RVA: 0x0023E44C File Offset: 0x0023C64C
218 public LightMaskMode GetMask(int x, int y)
219 {
220 /*
221An exception occurred when decompiling this method (06003EB8)
222
223ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Graphics.Light.LightMaskMode Terraria.Graphics.Light.LightMap::GetMask(System.Int32,System.Int32)
224
225 ---> System.Exception: Basic block has to end with unconditional control flow.
226{
227 Block_0:
228 stloc:int32(var_0_06, ldfld:int32(LightMap::<Height>k__BackingField, ldloc:LightMap(this)))
229 stloc:valuetype Terraria.Graphics.Light.LightMaskMode[](var_1_0D, ldfld:valuetype Terraria.Graphics.Light.LightMaskMode[](LightMap::_mask, ldloc:LightMap(this)))
230}
231
232 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
233 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
234 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
235 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
236 --- End of inner exception stack trace ---
237 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
238 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
239*/;
240 }
241
242 // Token: 0x06003EB9 RID: 16057 RVA: 0x0023E468 File Offset: 0x0023C668
243 [Il2CppSetOption(Option.NullChecks, false)]
244 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
245 public void Clear()
246 {
247 Vector3[] colors = this._colors;
248 LightMaskMode[] mask = this._mask;
249 }
250
251 // Token: 0x06003EBA RID: 16058 RVA: 0x0023E484 File Offset: 0x0023C684
252 public void SetMaskAt(int x, int y, LightMaskMode mode)
253 {
254 int num = this.<Height>k__BackingField;
255 LightMaskMode[] mask = this._mask;
256 }
257
258 // Token: 0x06003EBB RID: 16059 RVA: 0x0023E4A0 File Offset: 0x0023C6A0
259 public void BlurPass1()
260 {
261 this.BlurPass();
262 }
263
264 // Token: 0x06003EBC RID: 16060 RVA: 0x0023E4B4 File Offset: 0x0023C6B4
265 public void BlurPass2()
266 {
267 this.BlurPass();
268 }
269
270 // Token: 0x06003EBD RID: 16061 RVA: 0x0023E4C8 File Offset: 0x0023C6C8
271 public void Blur()
272 {
273 this.BlurPass();
274 this.BlurPass();
275 }
276
277 // Token: 0x06003EBE RID: 16062 RVA: 0x0023E4E4 File Offset: 0x0023C6E4
278 private void ExportBatchFinished(int index)
279 {
280 }
281
282 // Token: 0x170007A1 RID: 1953
283 // (get) Token: 0x06003EBF RID: 16063 RVA: 0x0023E4F4 File Offset: 0x0023C6F4
285 {
286 get
287 {
288 /*
289An exception occurred when decompiling this method (06003EBF)
290
291ICSharpCode.Decompiler.DecompilerException: Error decompiling ThreadedRenderManager/BatchProcessCallback Terraria.Graphics.Light.LightMap::get_ExportBatchFinishedCallback()
292
293 ---> System.Exception: Basic block has to end with unconditional control flow.
294{
295 IL_0000:
296 brtrue(IL_0000, ldfld:BatchProcessCallback[exp:bool](LightMap::_processBatchFinishedCallback, ldloc:LightMap(this)))
297}
298
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 1852
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 1878
302 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
303 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
304 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
305 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
306 --- End of inner exception stack trace ---
307 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
308 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
309*/;
310 }
311 }
312
313 // Token: 0x06003EC0 RID: 16064 RVA: 0x0023E508 File Offset: 0x0023C708
314 private void Blur1PassThreaded(int start, int end)
315 {
316 LightingEngine lightingEngine = this._threadManager.DrawThreads.lightingEngine;
317 WallDrawing wallDrawing = this._threadManager.DrawThreads.wallDrawing;
318 TileDrawing tileDrawing = this._threadManager.DrawThreads.tileDrawing;
319 this.Blur1Pass(start, end);
322 int num = 3;
324 }
325
326 // Token: 0x06003EC1 RID: 16065
327 public unsafe static extern void Blur1PassNative(Vector3* colors, Vector3* decayData, LightMaskMode* maskData, int start, int end, int width, int height);
328
329 // Token: 0x06003EC2 RID: 16066
330 public unsafe static extern void Blur2PassNative(Vector3* colors, Vector3* decayData, LightMaskMode* maskData, int start, int end, int width, int height);
331
332 // Token: 0x06003EC3 RID: 16067 RVA: 0x0023E56C File Offset: 0x0023C76C
333 public void Blur1Pass(int start, int end)
334 {
335 if (this._colors != null)
336 {
337 }
338 if (this._decayColors != null)
339 {
340 return;
341 }
342 if (this._mask != null)
343 {
344 return;
345 }
346 int num = this.<Width>k__BackingField;
347 }
348
349 // Token: 0x06003EC4 RID: 16068 RVA: 0x0023E59C File Offset: 0x0023C79C
350 private void Blur2PassThreaded(int start, int end)
351 {
352 LightingEngine lightingEngine = this._threadManager.DrawThreads.lightingEngine;
353 WallDrawing wallDrawing = this._threadManager.DrawThreads.wallDrawing;
354 TileDrawing tileDrawing = this._threadManager.DrawThreads.tileDrawing;
355 this.Blur2Pass(start, end);
358 int num = 3;
360 }
361
362 // Token: 0x06003EC5 RID: 16069 RVA: 0x0023E600 File Offset: 0x0023C800
363 public void Blur2Pass(int start, int end)
364 {
365 if (this._colors != null)
366 {
367 }
368 if (this._decayColors != null)
369 {
370 return;
371 }
372 if (this._mask != null)
373 {
374 return;
375 }
376 int num = this.<Width>k__BackingField;
377 }
378
379 // Token: 0x06003EC6 RID: 16070 RVA: 0x0023E630 File Offset: 0x0023C830
380 private void BlurPass()
381 {
382 int num = this.<Width>k__BackingField;
383 if (!true)
384 {
385 }
386 if (true)
387 {
388 long num2 = 0L;
389 this.Blur1PassThreaded((int)num2, num);
390 return;
391 }
392 long num3 = 0L;
393 this.Blur1Pass((int)num3, num);
394 int num4 = this.<Height>k__BackingField;
395 if (!true)
396 {
397 }
398 if (true)
399 {
400 long num5 = 0L;
401 this.Blur2PassThreaded((int)num5, num);
402 return;
403 }
404 long num6 = 0L;
405 this.Blur2Pass((int)num6, num4);
406 }
407
408 // Token: 0x06003EC7 RID: 16071 RVA: 0x0023E688 File Offset: 0x0023C888
409 public void ExecutePartialBlur(int pass)
410 {
411 }
412
413 // Token: 0x06003EC8 RID: 16072 RVA: 0x0023E75C File Offset: 0x0023C95C
414 [Il2CppSetOption(Option.NullChecks, false)]
415 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
416 private void BlurLine(int startIndex, int endIndex, int stride)
417 {
418 if (!true)
419 {
420 }
421 int num = 1;
422 if (num == 0)
423 {
424 }
426 int value = num.m_value;
427 Vector3[] colors = this._colors;
428 if (decayColors != null)
429 {
430 return;
431 }
432 if (this._mask != null)
433 {
434 return;
435 }
436 }
437
438 // Token: 0x06003EC9 RID: 16073 RVA: 0x0023E794 File Offset: 0x0023C994
439 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
440 [Il2CppSetOption(Option.NullChecks, false)]
441 private void BlurLine2(int startIndex, int endIndex, int stride)
442 {
443 if (!true)
444 {
445 }
446 int num = 1;
447 if (num == 0)
448 {
449 }
451 int value = num.m_value;
452 Vector3[] colors = this._colors;
453 if (decayColors != null)
454 {
455 return;
456 }
457 if (this._mask != null)
458 {
459 return;
460 }
461 }
462
463 // Token: 0x06003ECA RID: 16074 RVA: 0x0023E7CC File Offset: 0x0023C9CC
464 private int IndexOf(int x, int y)
465 {
466 /*
467An exception occurred when decompiling this method (06003ECA)
468
469ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.Graphics.Light.LightMap::IndexOf(System.Int32,System.Int32)
470
471 ---> System.Exception: Basic block has to end with unconditional control flow.
472{
473 Block_0:
474 stloc:int32(var_0_06, ldfld:int32(LightMap::<Height>k__BackingField, ldloc:LightMap(this)))
475}
476
477 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
478 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
479 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
480 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
481 --- End of inner exception stack trace ---
482 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
483 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
484*/;
485 }
486
487 // Token: 0x06003ECB RID: 16075 RVA: 0x0023E7E0 File Offset: 0x0023C9E0
488 public void SetSize(int width, int height)
489 {
490 Vector3[] colors = this._colors;
491 this.<Width>k__BackingField = width;
492 }
493
494 // Token: 0x04007D56 RID: 32086
496 private int <NonVisiblePadding>k__BackingField;
497
498 // Token: 0x04007D57 RID: 32087
500 private int <Width>k__BackingField;
501
502 // Token: 0x04007D58 RID: 32088
504 private int <Height>k__BackingField;
505
506 // Token: 0x04007D59 RID: 32089
507 public Vector3[] _colors;
508
509 // Token: 0x04007D5A RID: 32090
511
512 // Token: 0x04007D5B RID: 32091
514
515 // Token: 0x04007D5C RID: 32092
517
518 // Token: 0x04007D5D RID: 32093
519 private const int DEFAULT_WIDTH = 203;
520
521 // Token: 0x04007D5E RID: 32094
522 private const int DEFAULT_HEIGHT = 203;
523
524 // Token: 0x04007D5F RID: 32095
526
527 // Token: 0x04007D60 RID: 32096
529 }
530}
class f__AnonymousType0<< Count > j__TPar
void ExportBatchFinished(int index)
Definition LightMap.cs:278
void ExecutePartialBlur(int pass)
Definition LightMap.cs:409
ThreadedRenderManager _threadManager
Definition LightMap.cs:528
void Blur2PassThreaded(int start, int end)
Definition LightMap.cs:350
ThreadedRenderManager.BatchProcessCallback ExportBatchFinishedCallback
Definition LightMap.cs:285
LightMaskMode GetMask(int x, int y)
Definition LightMap.cs:218
void SetMaskAt(int x, int y, LightMaskMode mode)
Definition LightMap.cs:252
void BlurLine2(int startIndex, int endIndex, int stride)
Definition LightMap.cs:441
static unsafe void Blur2PassNative(Vector3 *colors, Vector3 *decayData, LightMaskMode *maskData, int start, int end, int width, int height)
void Blur1PassThreaded(int start, int end)
Definition LightMap.cs:314
void Blur2Pass(int start, int end)
Definition LightMap.cs:363
void GetLight(int x, int y, [Out] Vector3 color)
Definition LightMap.cs:209
int< NonVisiblePadding > k__BackingField
Definition LightMap.cs:496
static unsafe void Blur1PassNative(Vector3 *colors, Vector3 *decayData, LightMaskMode *maskData, int start, int end, int width, int height)
void BlurLine(int startIndex, int endIndex, int stride)
Definition LightMap.cs:416
void SetSize(int width, int height)
Definition LightMap.cs:488
ThreadedRenderManager.BatchProcessCallback _processBatchFinishedCallback
Definition LightMap.cs:525
void Blur1Pass(int start, int end)
Definition LightMap.cs:333
ThreadedRenderManager.RenderThreadInstance[] DrawThreads
void WaitAndProcess(ThreadedRenderManager.BatchProcessCallback callback, int numberOfThreads)
static FastRandom CreateWithRandomSeed()
Definition FastRandom.cs:51