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
TreeTopsInfo.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5
7{
8 // Token: 0x02000804 RID: 2052
9 public class TreeTopsInfo
10 {
11 // Token: 0x060041C0 RID: 16832 RVA: 0x00248858 File Offset: 0x00246A58
12 public void Save(BinaryWriter writer)
13 {
14 int[] variations = this._variations;
15 int[] variations2 = this._variations;
16 int[] variations3 = this._variations;
17 }
18
19 // Token: 0x060041C1 RID: 16833 RVA: 0x0024887C File Offset: 0x00246A7C
20 public void Load(BinaryReader reader, int loadVersion)
21 {
22 int[] variations = this._variations;
23 int[] variations2 = this._variations;
24 }
25
26 // Token: 0x060041C2 RID: 16834 RVA: 0x002488BC File Offset: 0x00246ABC
27 public void SyncSend(BinaryWriter writer)
28 {
29 int[] variations = this._variations;
30 int[] variations2 = this._variations;
31 }
32
33 // Token: 0x060041C3 RID: 16835 RVA: 0x002488DC File Offset: 0x00246ADC
34 public void SyncReceive(BinaryReader reader)
35 {
36 int[] variations = this._variations;
37 }
38
39 // Token: 0x060041C4 RID: 16836 RVA: 0x002488F4 File Offset: 0x00246AF4
40 public int GetTreeStyle(int areaId)
41 {
42 /*
43An exception occurred when decompiling this method (060041C4)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameContent.TreeTopsInfo::GetTreeStyle(System.Int32)
46
47 ---> System.Exception: Basic block has to end with unconditional control flow.
48{
49 Block_0:
50 stloc:int32[](var_0_06, ldfld:int32[](TreeTopsInfo::_variations, ldloc:TreeTopsInfo(this)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x060041C5 RID: 16837 RVA: 0x00248908 File Offset: 0x00246B08
65 {
66 Tile tile;
67 bool flag = tile.active();
68 }
69
70 // Token: 0x060041C6 RID: 16838 RVA: 0x00248954 File Offset: 0x00246B54
72 {
73 int[] variations = this._variations;
74 }
75
76 // Token: 0x060041C7 RID: 16839 RVA: 0x00248998 File Offset: 0x00246B98
77 private void DoTreeFX(int areaID)
78 {
79 }
80
81 // Token: 0x060041C8 RID: 16840 RVA: 0x002489A8 File Offset: 0x00246BA8
86
87 // Token: 0x060041C9 RID: 16841 RVA: 0x002489BC File Offset: 0x00246BBC
89 {
90 int[] variations = this._variations;
91 if (true)
92 {
93 return;
94 }
95 int[] variations2 = this._variations;
96 if (true)
97 {
98 return;
99 }
100 int[] variations3 = this._variations;
101 }
102
103 // Token: 0x060041CA RID: 16842 RVA: 0x002489E8 File Offset: 0x00246BE8
105 {
106 if (!true)
107 {
108 }
109 base..ctor();
110 }
111
112 // Token: 0x04008089 RID: 32905
113 private int[] _variations;
114
115 // Token: 0x02000805 RID: 2053
116 public class AreaId
117 {
118 // Token: 0x060041CB RID: 16843 RVA: 0x00248A00 File Offset: 0x00246C00
119 public AreaId()
120 {
121 }
122
123 // Token: 0x060041CC RID: 16844 RVA: 0x00248A14 File Offset: 0x00246C14
124 // Note: this type is marked as 'beforefieldinit'.
125 static AreaId()
126 {
127 }
128
129 // Token: 0x0400808A RID: 32906
130 public const int Forest1 = 0;
131
132 // Token: 0x0400808B RID: 32907
133 public const int Forest2 = 1;
134
135 // Token: 0x0400808C RID: 32908
136 public const int Forest3 = 2;
137
138 // Token: 0x0400808D RID: 32909
139 public const int Forest4 = 3;
140
141 // Token: 0x0400808E RID: 32910
142 public const int Corruption = 4;
143
144 // Token: 0x0400808F RID: 32911
145 public const int Jungle = 5;
146
147 // Token: 0x04008090 RID: 32912
148 public const int Snow = 6;
149
150 // Token: 0x04008091 RID: 32913
151 public const int Hallow = 7;
152
153 // Token: 0x04008092 RID: 32914
154 public const int Crimson = 8;
155
156 // Token: 0x04008093 RID: 32915
157 public const int Desert = 9;
158
159 // Token: 0x04008094 RID: 32916
160 public const int Ocean = 10;
161
162 // Token: 0x04008095 RID: 32917
163 public const int GlowingMushroom = 11;
164
165 // Token: 0x04008096 RID: 32918
166 public const int Underworld = 12;
167
168 // Token: 0x04008097 RID: 32919
169 public static readonly int Count;
170 }
171 }
172}
class f__AnonymousType0<< Count > j__TPar
void RandomizeTreeStyleBasedOnWorldPosition(UnifiedRandom rand, Vector2 worldPosition)
void SyncSend(BinaryWriter writer)
void SyncReceive(BinaryReader reader)
void Load(BinaryReader reader, int loadVersion)
void RandomizeTreeStyle(UnifiedRandom rand, int areaId)
void Save(BinaryWriter writer)
bool active()
Definition Tile.cs:1241