Exemple #1
0
        internal GameApp(GameLoop gameLoop, WorldRenderer renderer, UiRenderer uiRenderer, GameControl gameControl, GameController gameController, GameConnectionManager connectionManager)
        {
            _gameLoop          = gameLoop;
            _renderer          = renderer;
            _uiRenderer        = uiRenderer;
            _gameControl       = gameControl;
            _gameController    = gameController;
            _connectionManager = connectionManager;

            _gameController.IsKeyPressedCallback = IsKeyPressed;

            _gameLoop.Reset();
        }
Exemple #2
0
        internal GameApp(GameLoop gameLoop, WorldRenderer renderer, UiRenderer uiRenderer, GameControl gameControl, GameController gameController, GameConnectionManager connectionManager)
        {
            _gameLoop = gameLoop;
            _renderer = renderer;
            _uiRenderer = uiRenderer;
            _gameControl = gameControl;
            _gameController = gameController;
            _connectionManager = connectionManager;

            _gameController.IsKeyPressedCallback = IsKeyPressed;

            _gameLoop.Reset();
        }