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

◆ digTunnel()

static Vector2D Terraria.WorldGen.digTunnel ( double X,
double Y,
double xDir,
double yDir,
int Steps,
int Size,
bool Wet = false )
inlinestatic

Definition at line 16569 of file WorldGen.cs.

16570 {
16571 /*
16572An exception occurred when decompiling this method (06002E81)
16573
16574ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.Vector2D Terraria.WorldGen::digTunnel(System.Double,System.Double,System.Double,System.Double,System.Int32,System.Int32,System.Boolean)
16575
16576 ---> System.Exception: Basic block has to end with unconditional control flow.
16577{
16578 IL_0003:
16579 stloc:UnifiedRandom(var_3_0A, callgetter:UnifiedRandom(WorldGen::get_genRand))
16580 stloc:int32(var_4_0D, ldc.i4:int32(11))
16581 stloc:int32(var_5_19, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_3_0A), ldloc:int32(Size), ldloc:int32(var_4_0D)))
16582 stloc:int64(var_7_1C, ldc.i4:int64(0))
16583 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6), ldloc:int64[exp:bool](var_7_1C))
16584 stloc:int32(var_8_2C, ldc.i4:int32(255))
16585 callsetter:uint8(Tile::set_liquid, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6), ldloc:int32[exp:uint8](var_8_2C))
16586 stloc:UnifiedRandom(var_9_3C, callgetter:UnifiedRandom(WorldGen::get_genRand))
16587 stloc:int32(var_10_40, ldc.i4:int32(51))
16588 stloc:int32(var_11_4D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_9_3C), ldloc:int32(var_8_2C), ldloc:int32(var_10_40)))
16589 stloc:UnifiedRandom(var_12_54, callgetter:UnifiedRandom(WorldGen::get_genRand))
16590 stloc:int32(var_13_58, ldc.i4:int32(21))
16591 stloc:int32(var_14_65, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_12_54), ldloc:int32(var_8_2C), ldloc:int32(var_13_58)))
16592 stloc:UnifiedRandom(var_15_6C, callgetter:UnifiedRandom(WorldGen::get_genRand))
16593 stloc:int32(var_16_70, ldc.i4:int32(21))
16594 stloc:int32(var_17_7D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_15_6C), ldloc:int32(var_8_2C), ldloc:int32(var_16_70)))
16595}
16596
16597 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
16598 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
16599 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
16600 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
16601 --- End of inner exception stack trace ---
16602 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
16603 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
16604*/;
16605 }