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

◆ Collision_DecideFallThroughPlatforms()

bool Terraria.NPC.Collision_DecideFallThroughPlatforms ( )
inlineprivate

Definition at line 9479 of file NPC.cs.

9480 {
9481 /*
9482An exception occurred when decompiling this method (0600227D)
9483
9484ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.NPC::Collision_DecideFallThroughPlatforms()
9485
9486 ---> System.Exception: Basic block has to end with unconditional control flow.
9487{
9488 IL_0175:
9489 stloc:int32(var_38_17B, ldfld:int32(Entity::height, ldloc:NPC[exp:Entity](this)))
9490 stloc:float32(var_39_188, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](Entity::position, ldloc:NPC[exp:Entity](this))))
9491 stloc:int32(var_41_197, ldfld:int32(NPC::homeTileY, ldloc:NPC(this)))
9492 stloc:int32(var_42_19F, ldfld:int32(NPC::type, ldloc:NPC(this)))
9493 stloc:int32(var_43_1A7, ldfld:int32(NPC::target, ldloc:NPC(this)))
9494 stloc:float32(var_44_1B9, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](Entity::position, callgetter:Player[exp:Entity](NPC::get_TargetPlayer, ldloc:NPC(this)))))
9495 stloc:Vector2(var_45_1C1, callgetter:Vector2(Entity::get_Bottom, ldloc:NPC[exp:Entity](this)))
9496}
9497
9498 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
9499 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
9500 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
9501 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
9502 --- End of inner exception stack trace ---
9503 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
9504 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
9505*/;
9506 }

Referenced by Terraria.NPC.UpdateCollision().