public GameObject(Position pos, DirVector dir, double speed, int height, int width, IComponentPhysics phy, IComponentInput input) { Speed = speed; Dir = dir; Position = pos; Height = height; Width = width; Phy = phy; Input = input; }
public async Task <IViewComponentResult> InvokeAsync(IComponentInput input) { Model model = new Model { Error = input.Error }; if (input.Error == null) { //TODO INJECTABLE, visibility issue var flowResolver = HttpContext.RequestServices.Resolve <IFlowGraphResolver>(); var data = flowResolver.ResolveDebuggingData(input.FlowHandler); var graph = flowResolver.GetGraph(input.FlowHandler); model.GraphAsJson = (await graph).ToJson(camelCase: true); model.StepsDatasAsJson = (await data).ToJson(); GetDifferences(); } return(View("_Index", model)); }