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

◆ GetColorFromInput()

Color MultiplayerWithBindingsExample.Player.GetColorFromInput ( )
inlineprivate

Definition at line 64 of file Player.cs.

65 {
66 /*
67An exception occurred when decompiling this method (06000017)
68
69ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color MultiplayerWithBindingsExample.Player::GetColorFromInput()
70
71 ---> System.Exception: Basic block has to end with unconditional control flow.
72{
73 Block_0:
74 stloc:bool(var_0_10, call:bool(OneAxisInputControl::op_Implicit, ldfld:PlayerAction[exp:OneAxisInputControl](PlayerActions::Green, ldfld:PlayerActions(Player::<Actions>k__BackingField, ldloc:Player(this)))))
75 stloc:bool(var_1_21, call:bool(OneAxisInputControl::op_Implicit, ldfld:PlayerAction[exp:OneAxisInputControl](PlayerActions::Red, ldfld:PlayerActions(Player::<Actions>k__BackingField, ldloc:Player(this)))))
76 stloc:bool(var_2_32, call:bool(OneAxisInputControl::op_Implicit, ldfld:PlayerAction[exp:OneAxisInputControl](PlayerActions::Blue, ldfld:PlayerActions(Player::<Actions>k__BackingField, ldloc:Player(this)))))
77 stloc:bool(var_3_43, call:bool(OneAxisInputControl::op_Implicit, ldfld:PlayerAction[exp:OneAxisInputControl](PlayerActions::Yellow, ldfld:PlayerActions(Player::<Actions>k__BackingField, ldloc:Player(this)))))
78}
79
80 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
81 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
82 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
83 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
84 --- End of inner exception stack trace ---
85 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
86 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
87*/;
88 }

Referenced by MultiplayerWithBindingsExample.Player.Update().