NScumm.Scumm.ScummEngine.WaitForTimer C# (CSharp) Метод

WaitForTimer() приватный Метод

private WaitForTimer ( int msec_delay ) : void
msec_delay int
Результат void
        void WaitForTimer(int msec_delay)
        {
            //            if (_fastMode & 2)
            //                msec_delay = 0;
            //            else if (_fastMode & 1)
            //                msec_delay = 10;

            var start_time = Environment.TickCount;

            while (!HasToQuit)
            {
                //        _sound.updateCD(); // Loop CD Audio if needed
                ParseEvents();

                if (_townsScreen != null)
                    _townsScreen.Update();

                _gfxManager.UpdateScreen();
                if (Environment.TickCount >= start_time + msec_delay)
                    break;
                ServiceLocator.Platform.Sleep(10);
            }
        }
ScummEngine