예제 #1
0
        private void GameProc()
        {
            while (true)
            {
                if (GameThreadPaused)
                {
                    Thread.Sleep(250);
                }


                RunNextThreadAction();

                if (LastFrameState != Game.CurrentState)
                {
                    _Owner.SetDisplayMode(Game.CurrentState.SupportedDisplayMode);
                }

                if (Game.CurrentState != null && !Game.CurrentState.GameProcSuspended)
                {
                    Game.GameProc();
                }

                _Presenter.Present();

                Thread.Sleep(5);
            }
        }
예제 #2
0
 public void SetDisplayMode(GameState.DisplayMode pMode)
 {
     GameOwner?.SetDisplayMode(pMode);
 }