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
PitEntrance.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000907 RID: 2311
9 public static class PitEntrance
10 {
11 // Token: 0x06004678 RID: 18040 RVA: 0x00259A58 File Offset: 0x00257C58
12 public static void Place(DesertDescription description)
13 {
14 if (!true)
15 {
16 }
18 int num = 6;
19 int num2 = 9;
20 int num3 = genRand.Next(num, num2);
21 int x = description.<CombinedArea>k__BackingField.X;
22 SurfaceMap <Surface>k__BackingField = description.<Surface>k__BackingField;
23 int x2 = <Surface>k__BackingField.X;
24 short[] heights = <Surface>k__BackingField._heights;
25 Point point;
26 PitEntrance.PlaceAt(description, point, num3);
27 }
28
29 // Token: 0x06004679 RID: 18041 RVA: 0x00259AB0 File Offset: 0x00257CB0
30 private static void PlaceAt(DesertDescription description, Point position, int holeRadius)
31 {
32 Rectangle <Hive>k__BackingField = description.<Hive>k__BackingField;
33 SurfaceMap <Surface>k__BackingField = description.<Surface>k__BackingField;
34 int x = <Surface>k__BackingField.X;
35 short[] heights = <Surface>k__BackingField._heights;
36 int y = description.<Desert>k__BackingField.Y;
37 if (heights == null)
38 {
39 }
40 double num = PitEntrance.SmootherStep(0.35);
41 Tile tile;
42 tile.ClearEverything();
43 }
44
45 // Token: 0x0600467A RID: 18042 RVA: 0x000021DB File Offset: 0x000003DB
46 private static double GetHoleRadiusScaleAt(double yProgress)
47 {
48 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
49 }
50
51 // Token: 0x0600467B RID: 18043 RVA: 0x00259BAC File Offset: 0x00257DAC
52 private static double SmootherStep(double delta)
53 {
54 /*
55An exception occurred when decompiling this method (0600467B)
56
57ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double Terraria.GameContent.Biomes.Desert.PitEntrance::SmootherStep(System.Double)
58
59 ---> System.Exception: Basic block has to end with unconditional control flow.
60{
61 IL_0003:
62 brtrue(IL_0000, ldc.i4:bool(1))
63}
64
65 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
66 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
67 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
68 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
69 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
70 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
71 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
72 --- End of inner exception stack trace ---
73 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
74 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
75*/;
76 }
77 }
78}
class f__AnonymousType0<< Count > j__TPar
static void PlaceAt(DesertDescription description, Point position, int holeRadius)
static void Place(DesertDescription description)
static double SmootherStep(double delta)
static double GetHoleRadiusScaleAt(double yProgress)
static UnifiedRandom genRand
Definition WorldGen.cs:38
void ClearEverything()
Definition Tile.cs:355