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
HouseUtils.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000911 RID: 2321
10 public static class HouseUtils
11 {
12 // Token: 0x060046C2 RID: 18114 RVA: 0x0025AD38 File Offset: 0x00258F38
13 public static HouseBuilder CreateBuilder(Point origin, StructureMap structures)
14 {
15 /*
16An exception occurred when decompiling this method (060046C2)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Biomes.CaveHouse.HouseBuilder Terraria.GameContent.Biomes.CaveHouse.HouseUtils::CreateBuilder(Microsoft.Xna.Framework.Point,Terraria.WorldBuilding.StructureMap)
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 IL_001A:
23 stloc:HouseType(var_3_20, call:HouseType(HouseUtils::GetHouseType, ldloc:class [mscorlib]System.Collections.Generic.List`1<valuetype Microsoft.Xna.Framework.Rectangle>[exp:IEnumerable`1](var_0)))
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.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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x060046C3 RID: 18115 RVA: 0x0025AD68 File Offset: 0x00258F68
48
49 // Token: 0x060046C4 RID: 18116 RVA: 0x0025ADCC File Offset: 0x00258FCC
50 private static Rectangle FindRoom(Point origin)
51 {
53 }
54
55 // Token: 0x060046C5 RID: 18117 RVA: 0x0025ADF8 File Offset: 0x00258FF8
56 private static double GetRoomSolidPrecentage(Rectangle room)
57 {
59 }
60
61 // Token: 0x060046C6 RID: 18118 RVA: 0x000021DB File Offset: 0x000003DB
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x060046C7 RID: 18119 RVA: 0x0025AE0C File Offset: 0x0025900C
69 {
70 if (!false)
71 {
72 }
73 throw new OutOfMemoryException();
74 }
75
76 // Token: 0x060046C8 RID: 18120 RVA: 0x0025AE3C File Offset: 0x0025903C
78 {
79 if (!false)
80 {
81 }
82 throw new OutOfMemoryException();
83 }
84
85 // Token: 0x060046C9 RID: 18121 RVA: 0x0025AE88 File Offset: 0x00259088
86 private static bool AreRoomsValid(IEnumerable<Rectangle> rooms, StructureMap structures, HouseType style)
87 {
88 bool flag;
89 return flag;
90 }
91
92 // Token: 0x060046CA RID: 18122 RVA: 0x0025AEE0 File Offset: 0x002590E0
93 // Note: this type is marked as 'beforefieldinit'.
94 static HouseUtils()
95 {
96 if (!true)
97 {
98 }
99 }
100
101 // Token: 0x040082B4 RID: 33460
102 private static readonly bool[] BlacklistedTiles;
103
104 // Token: 0x040082B5 RID: 33461
105 private static readonly bool[] BeelistedTiles;
106 }
107}
class f__AnonymousType0<< Count > j__TPar
static double GetRoomSolidPrecentage(Rectangle room)
Definition HouseUtils.cs:56
static HouseBuilder CreateBuilder(Point origin, StructureMap structures)
Definition HouseUtils.cs:13
static bool AreRoomLocationsValid(IEnumerable< Rectangle > rooms)
Definition HouseUtils.cs:68
static HouseType GetHouseType(IEnumerable< Rectangle > rooms)
Definition HouseUtils.cs:77
static bool AreRoomsValid(IEnumerable< Rectangle > rooms, StructureMap structures, HouseType style)
Definition HouseUtils.cs:86
static int SortBiomeResults(Tuple< HouseType, int > item1, Tuple< HouseType, int > item2)
Definition HouseUtils.cs:62
static List< Rectangle > CreateRooms(Point origin)
Definition HouseUtils.cs:37
static Rectangle FindRoom(Point origin)
Definition HouseUtils.cs:50
static UnifiedRandom genRand
Definition WorldGen.cs:38