protected void Render(NativeWindow window, SKCanvas canvas, IUtilityService utility, IWorldController world, HUDController hud, EntityController entities, Position windowSize, ScreensController screens) { canvas.Clear(utility.ColorToSkia(Colors.Background)); var gameService = new GameRenderService(canvas, utility, windowSize); world.Render(gameService); hud.Render(gameService); entities.Render(gameService); screens.Render(gameService); canvas.Flush(); window.SwapBuffers(); }
protected void Update(NativeWindow window, IStatsService statsService, IGameUpdateService gameService, IKeyboardService keyboard, IWorldController world, HUDController hud, EntityController entities, ScreensController screens) { world.Update(gameService); hud.Update(gameService); entities.Update(gameService); screens.Update(gameService); }