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
GenShape.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020004D9 RID: 1241
7 public abstract class GenShape : GenBase
8 {
9 // Token: 0x0600303E RID: 12350
10 public abstract bool Perform(Point origin, GenAction action);
11
12 // Token: 0x0600303F RID: 12351 RVA: 0x001F5E1C File Offset: 0x001F401C
13 protected bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
14 {
15 /*
16An exception occurred when decompiling this method (0600303F)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldBuilding.GenShape::UnitApply(Terraria.WorldBuilding.GenAction,Microsoft.Xna.Framework.Point,System.Int32,System.Int32,System.Object[])
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 IL_0000:
23 brtrue(IL_0000, logicnot:bool(ldfld:ShapeData[exp:bool](GenShape::_outputData, ldloc:GenShape(this))))
24}
25
26 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
27 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
28 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
29 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
30 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
31 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
32 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
33 --- End of inner exception stack trace ---
34 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
35 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
36*/;
37 }
38
39 // Token: 0x06003040 RID: 12352 RVA: 0x001F5E30 File Offset: 0x001F4030
41 {
43 return this;
44 }
45
46 // Token: 0x06003041 RID: 12353 RVA: 0x001F5E48 File Offset: 0x001F4048
47 public GenShape QuitOnFail(bool value = true)
48 {
49 return this;
50 }
51
52 // Token: 0x06003042 RID: 12354 RVA: 0x001F5E58 File Offset: 0x001F4058
53 protected GenShape()
54 {
55 }
56
57 // Token: 0x040039D9 RID: 14809
59
60 // Token: 0x040039DA RID: 14810
61 protected bool _quitOnFail;
62 }
63}
class f__AnonymousType0<< Count > j__TPar
bool Perform(Point origin, GenAction action)
GenShape Output(ShapeData outputData)
Definition GenShape.cs:40
GenShape QuitOnFail(bool value=true)
Definition GenShape.cs:47
bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
Definition GenShape.cs:13