コード例 #1
0
        public virtual void Run()
        {
            startTime = System.CurrentTimeMillis();
            xcommand_t callback = new Anonymousxcommand_t(this);

            while (true)
            {
                re.UpdateScreen(callback);
                kbd.Update();
                Cbuf.Execute();
            }
        }
コード例 #2
0
ファイル: TestRenderer.cs プロジェクト: optimus-code/Q2Sharp
        public virtual void Run()
        {
            startTime = System.CurrentTimeMillis();
            xcommand_t callback = new Anonymousxcommand_t(this);

            while (true)
            {
                re.UpdateScreen(callback);
                kbd.Update();
                Cbuf.Execute();
                try
                {
                    Thread.Sleep(5);
                }
                catch (Exception e)
                {
                }
            }
        }