コード例 #1
0
ファイル: GameManager.cs プロジェクト: remixod/sharpwow
        /// <summary>
        /// Initializes the game and runs the modal loop. The calling thread is interpreted as the main thread.
        /// Once you have called you should not call RunGame again.
        /// </summary>
        public static void RunGame()
        {
            mActiveChange = Logic.ActiveChangeType.Height;
            SavePath = ".\\Save\\";
            mStartTime = DateTime.Now;
            ThreadManager = new ThreadManager();
            mMainThread = System.Threading.Thread.CurrentThread;
            Application.EnableVisualStyles();
            mForm = new UI.Form1();
            Bookmark.SetKeyUpDelegate();
            GraphicsThread = new VideoThread(mForm, mForm.panel1);
            if (GraphicsThreadCreated != null)
                GraphicsThreadCreated();

            GraphicsThread.RunLoop();
        }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: corefan/sharpwow
        /// <summary>
        /// Initializes the game and runs the modal loop. The calling thread is interpreted as the main thread.
        /// Once you have called you should not call RunGame again.
        /// </summary>
        public static void RunGame()
        {
            mActiveChange = Logic.ActiveChangeType.Height;
            SavePath      = ".\\Save\\";
            mStartTime    = DateTime.Now;
            ThreadManager = new ThreadManager();
            mMainThread   = System.Threading.Thread.CurrentThread;
            Application.EnableVisualStyles();
            mForm = new UI.Form1();
            Bookmark.SetKeyUpDelegate();
            GraphicsThread = new VideoThread(mForm, mForm.panel1);
            if (GraphicsThreadCreated != null)
            {
                GraphicsThreadCreated();
            }

            GraphicsThread.RunLoop();
        }