/// <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(); }
/// <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(); }