示例#1
0
        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();
        }
示例#2
0
 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);
 }