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
MapTile.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.Map
5{
6 // Token: 0x020006BC RID: 1724
7 public struct MapTile
8 {
9 // Token: 0x170006DA RID: 1754
10 // (get) Token: 0x06003918 RID: 14616 RVA: 0x000021DB File Offset: 0x000003DB
11 // (set) Token: 0x06003919 RID: 14617 RVA: 0x0022C758 File Offset: 0x0022A958
12 public bool IsChanged
13 {
14 get
15 {
16 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
17 }
18 set
19 {
20 byte extraData = this._extraData;
22 }
23 }
24
25 // Token: 0x170006DB RID: 1755
26 // (get) Token: 0x0600391A RID: 14618 RVA: 0x0022C774 File Offset: 0x0022A974
27 // (set) Token: 0x0600391B RID: 14619 RVA: 0x0022C788 File Offset: 0x0022A988
28 public byte Color
29 {
30 get
31 {
32 /*
33An exception occurred when decompiling this method (0600391A)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Terraria.Map.MapTile::get_Color()
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 Block_0:
40 stloc:uint8(var_0_06, ldfld:uint8(MapTile::_extraData, ldloc:valuetype Terraria.Map.MapTile&(this)))
41}
42
43 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
44 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
45 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
46 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
47 --- End of inner exception stack trace ---
48 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
49 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
50*/;
51 }
52 set
53 {
54 byte extraData = this._extraData;
56 }
57 }
58
59 // Token: 0x0600391C RID: 14620 RVA: 0x0022C7A4 File Offset: 0x0022A9A4
60 private MapTile(ushort type, byte light, byte extraData)
61 {
62 this.Type = type;
63 this.Light = light;
65 }
66
67 // Token: 0x0600391D RID: 14621 RVA: 0x0022C7C8 File Offset: 0x0022A9C8
68 public bool Equals(MapTile other)
69 {
70 /*
71An exception occurred when decompiling this method (0600391D)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Map.MapTile::Equals(Terraria.Map.MapTile)
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:uint8(var_0_06, ldfld:uint8(MapTile::Light, ldloc:valuetype Terraria.Map.MapTile&(this)))
79 stloc:uint8(var_1_0D, ldfld:uint8(MapTile::Light, ldloc:MapTile[exp:valuetype Terraria.Map.MapTile&](other)))
80 stloc:uint8(var_2_14, ldfld:uint8(MapTile::_extraData, ldloc:valuetype Terraria.Map.MapTile&(this)))
81 stloc:uint8(var_3_1B, ldfld:uint8(MapTile::_extraData, ldloc:MapTile[exp:valuetype Terraria.Map.MapTile&](other)))
82}
83
84 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
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93
94 // Token: 0x0600391E RID: 14622 RVA: 0x0022C7F4 File Offset: 0x0022A9F4
96 {
97 /*
98An exception occurred when decompiling this method (0600391E)
99
100ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Map.MapTile::EqualsWithoutLight(Terraria.Map.MapTile)
101
102 ---> System.Exception: Basic block has to end with unconditional control flow.
103{
104 Block_0:
105 stloc:uint8(var_0_06, ldfld:uint8(MapTile::_extraData, ldloc:valuetype Terraria.Map.MapTile&(this)))
106 stloc:uint8(var_1_0D, ldfld:uint8(MapTile::_extraData, ldloc:MapTile[exp:valuetype Terraria.Map.MapTile&](other)))
107}
108
109 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
110 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
111 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
112 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
113 --- End of inner exception stack trace ---
114 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
115 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
116*/;
117 }
118
119 // Token: 0x0600391F RID: 14623 RVA: 0x0022C810 File Offset: 0x0022AA10
120 public void Clear()
121 {
122 }
123
124 // Token: 0x06003920 RID: 14624 RVA: 0x0022C820 File Offset: 0x0022AA20
125 public MapTile WithLight(byte light)
126 {
127 byte extraData = this._extraData;
128 return ref this;
129 }
130
131 // Token: 0x06003921 RID: 14625 RVA: 0x000021DB File Offset: 0x000003DB
132 public static MapTile Create(ushort type, byte light, byte color)
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x040079AF RID: 31151
138 public ushort Type;
139
140 // Token: 0x040079B0 RID: 31152
141 public byte Light;
142
143 // Token: 0x040079B1 RID: 31153
144 public byte _extraData;
145 }
146}
class f__AnonymousType0<< Count > j__TPar
MapTile WithLight(byte light)
Definition MapTile.cs:125
bool EqualsWithoutLight(MapTile other)
Definition MapTile.cs:95
static MapTile Create(ushort type, byte light, byte color)
Definition MapTile.cs:132
bool Equals(MapTile other)
Definition MapTile.cs:68
MapTile(ushort type, byte light, byte extraData)
Definition MapTile.cs:60