Esempio n. 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();
        }
Esempio n. 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();
        }