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

◆ Place()

override bool Terraria.GameContent.Biomes.DunesBiome.Place ( Point origin,
StructureMap structures )
inline

Definition at line 26 of file DunesBiome.cs.

27 {
28 /*
29An exception occurred when decompiling this method (060045F9)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Biomes.DunesBiome::Place(Microsoft.Xna.Framework.Point,Terraria.WorldBuilding.StructureMap)
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:UnifiedRandom(var_1_07, callgetter:UnifiedRandom(GenBase::get__random))
37 stloc:int32(var_2_0A, ldc.i4:int32(60))
38 stloc:int32(var_3_0D, ldc.i4:int32(100))
39 stloc:int32(var_4_16, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_1_07), ldloc:int32(var_2_0A), ldloc:int32(var_3_0D)))
40 stloc:float64(var_5_1E, ldfld:float64(DunesBiome::_heightScale, ldloc:DunesBiome(this)))
41 stloc:UnifiedRandom(var_7_28, callgetter:UnifiedRandom(GenBase::get__random))
42 stloc:int32(var_8_2C, ldc.i4:int32(60))
43 stloc:int32(var_9_30, ldc.i4:int32(100))
44 stloc:int32(var_10_3D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_7_28), ldloc:int32(var_8_2C), ldloc:int32(var_9_30)))
45 stloc:float64(var_11_45, ldfld:float64(DunesBiome::_heightScale, ldloc:DunesBiome(this)))
46 stloc:WorldGenRange(var_12_4D, ldfld:WorldGenRange(DunesBiome::_singleDunesWidth, ldloc:DunesBiome(this)))
47 stloc:UnifiedRandom(var_14_57, callgetter:UnifiedRandom(GenBase::get__random))
48 stloc:int32(var_15_62, call:int32(WorldGenRange::GetRandom, ldloc:WorldGenRange(var_12_4D), ldloc:UnifiedRandom(var_14_57)))
49 stloc:WorldGenRange(var_16_6A, ldfld:WorldGenRange(DunesBiome::_singleDunesWidth, ldloc:DunesBiome(this)))
50 stloc:UnifiedRandom(var_18_74, callgetter:UnifiedRandom(GenBase::get__random))
51 stloc:int32(var_20_82, call:int32(WorldGenRange::GetRandom, ldloc:WorldGenRange(var_16_6A), ldloc:UnifiedRandom(var_18_74)))
52 call:void(DunesBiome::PlaceSingle, ldloc:DunesBiome(this), ldloc:DunesDescription(var_21), ldloc:StructureMap(structures))
53 call:void(DunesBiome::PlaceSingle, ldloc:DunesBiome(this), ldloc:DunesDescription(var_22), ldloc:StructureMap(structures))
54}
55
56 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
57 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
58 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
59 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
60 --- End of inner exception stack trace ---
61 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
62 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
63*/;
64 }