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
GenCondition.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x020004A7 RID: 1191
6 public abstract class GenCondition : GenBase
7 {
8 // Token: 0x06002FCE RID: 12238 RVA: 0x001F4C98 File Offset: 0x001F2E98
9 public bool IsValid(int x, int y)
10 {
11 /*
12An exception occurred when decompiling this method (06002FCE)
13
14ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldBuilding.GenCondition::IsValid(System.Int32,System.Int32)
15
16 ---> System.Exception: Basic block has to end with unconditional control flow.
17{
18 IL_0054:
19 stloc:bool(var_11_5D, ldfld:bool(GenCondition::InvertResults, ldloc:GenCondition(this)))
20}
21
22 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
23 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
24 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
25 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
26 --- End of inner exception stack trace ---
27 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
28 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
29*/;
30 }
31
32 // Token: 0x06002FCF RID: 12239 RVA: 0x001F4D04 File Offset: 0x001F2F04
34 {
35 bool invertResults = this.InvertResults;
37 return this;
38 }
39
40 // Token: 0x06002FD0 RID: 12240 RVA: 0x001F4D20 File Offset: 0x001F2F20
41 public GenCondition AreaOr(int width, int height)
42 {
43 this._height = height;
44 this._width = width;
45 return this;
46 }
47
48 // Token: 0x06002FD1 RID: 12241 RVA: 0x001F4D3C File Offset: 0x001F2F3C
49 public GenCondition AreaAnd(int width, int height)
50 {
51 this._height = height;
52 this._width = width;
53 return this;
54 }
55
56 // Token: 0x06002FD2 RID: 12242
57 protected abstract bool CheckValidity(int x, int y);
58
59 // Token: 0x06002FD3 RID: 12243 RVA: 0x001F4D58 File Offset: 0x001F2F58
60 protected GenCondition()
61 {
62 }
63
64 // Token: 0x04003992 RID: 14738
65 private bool InvertResults;
66
67 // Token: 0x04003993 RID: 14739
68 private int _width;
69
70 // Token: 0x04003994 RID: 14740
71 private int _height;
72
73 // Token: 0x04003995 RID: 14741
75
76 // Token: 0x020004A8 RID: 1192
77 private enum AreaType
78 {
79 // Token: 0x04003997 RID: 14743
80 And,
81 // Token: 0x04003998 RID: 14744
82 Or,
83 // Token: 0x04003999 RID: 14745
84 None
85 }
86 }
87}
class f__AnonymousType0<< Count > j__TPar
GenCondition AreaOr(int width, int height)
GenCondition AreaAnd(int width, int height)
GenCondition.AreaType _areaType