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
BackgroundChangeFlashInfo.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000806 RID: 2054
7 {
8 // Token: 0x060041CD RID: 16845 RVA: 0x00248A24 File Offset: 0x00246C24
9 public void UpdateCache()
10 {
11 if (!true)
12 {
13 }
14 int[] variations = this._variations;
15 long num = 0L;
16 this.ValueChanged((int)num);
17 int[] variations2 = this._variations;
18 this.ValueChanged(1);
19 int[] variations3 = this._variations;
20 this.ValueChanged(2);
21 int[] variations4 = this._variations;
22 this.ValueChanged(3);
23 int[] variations5 = this._variations;
24 this.ValueChanged(4);
25 int[] variations6 = this._variations;
26 this.ValueChanged(5);
27 int[] variations7 = this._variations;
28 this.ValueChanged(6);
29 int[] variations8 = this._variations;
30 this.ValueChanged(7);
31 int[] variations9 = this._variations;
32 this.ValueChanged(8);
33 int[] variations10 = this._variations;
34 this.ValueChanged(9);
35 int[] variations11 = this._variations;
36 this.ValueChanged(10);
37 int[] variations12 = this._variations;
38 this.ValueChanged(11);
39 int[] variations13 = this._variations;
40 }
41
42 // Token: 0x060041CE RID: 16846 RVA: 0x00248AFC File Offset: 0x00246CFC
44 {
45 int[] variations = this._variations;
46 }
47
48 // Token: 0x060041CF RID: 16847 RVA: 0x00248B18 File Offset: 0x00246D18
49 private void ValueChanged(int areaId)
50 {
51 if (!true)
52 {
53 }
54 bool gameMenu = Main.gameMenu;
55 float[] flashPower = this._flashPower;
56 }
57
58 // Token: 0x060041D0 RID: 16848 RVA: 0x00248B40 File Offset: 0x00246D40
59 public void UpdateFlashValues()
60 {
61 float[] flashPower = this._flashPower;
62 float[] flashPower2 = this._flashPower;
63 }
64
65 // Token: 0x060041D1 RID: 16849 RVA: 0x00248B60 File Offset: 0x00246D60
66 public float GetFlashPower(int areaId)
67 {
68 /*
69An exception occurred when decompiling this method (060041D1)
70
71ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.BackgroundChangeFlashInfo::GetFlashPower(System.Int32)
72
73 ---> System.Exception: Basic block has to end with unconditional control flow.
74{
75 Block_0:
76 stloc:float32[](var_0_06, ldfld:float32[](BackgroundChangeFlashInfo::_flashPower, ldloc:BackgroundChangeFlashInfo(this)))
77}
78
79 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
80 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
81 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
82 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
83 --- End of inner exception stack trace ---
84 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
85 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
86*/;
87 }
88
89 // Token: 0x060041D2 RID: 16850 RVA: 0x00248B74 File Offset: 0x00246D74
91 {
92 }
93
94 // Token: 0x04008098 RID: 32920
95 private int[] _variations;
96
97 // Token: 0x04008099 RID: 32921
98 private float[] _flashPower;
99 }
100}
class f__AnonymousType0<< Count > j__TPar
void UpdateVariation(int areaId, int newVariationValue)
static bool gameMenu
Definition Main.cs:2673