static void Main(string[] args) { var game = new MainGameWindow(); game.Run(); }
private void StartMenu() { var ww = new GameMenu.MenuWindow(); maingamewindow = new MainGameWindow(ww); ww.d_MainWindow = maingamewindow; ww.d_The3d = new The3d(); ww.d_The3d.d_GetFile = getfile; ww.d_The3d.d_Config3d = new Config3d(); ww.d_The3d.d_Terrain = new TerrainTextures(); ww.d_The3d.d_TextRenderer = new ManicDigger.Renderers.TextRenderer(); var game = this; ww.d_Game = game; ww.d_TextRenderer = new ManicDigger.Renderers.TextRenderer(); ww.d_Exit = exit; ww.d_Audio = audio; ww.d_GetFile = getfile; audio.d_GetFile = getfile; audio.d_GameExit = exit; ww.d_FormMainMenu = new FormMainMenu(); ww.d_FormMainMenu.menu = ww; ww.d_FormMainMenu.Initialize(); ww.d_FormJoinMultiplayer = new FormJoinMultiplayer(); ww.d_FormJoinMultiplayer.menu = ww; ww.d_FormJoinMultiplayer.game = game; ww.d_FormJoinMultiplayer.Initialize(); ww.d_FormLogin = new FormLogin(); ww.d_FormLogin.menu = ww; ww.d_FormLogin.game = game; ww.d_FormLogin.logindatafile = logindatafile; ww.d_FormLogin.Initialize(); ww.d_FormSelectWorld = new FormSelectWorld(); ww.d_FormSelectWorld.menu = ww; ww.d_FormSelectWorld.game = game; ww.d_FormSelectWorld.Initialize(); ww.d_FormWorldOptions = new FormWorldOptions(); ww.d_FormWorldOptions.menu = ww; ww.d_FormWorldOptions.game = game; ww.d_FormWorldOptions.Initialize(); ww.d_FormMessageBox = new FormMessageBox(); ww.d_FormMessageBox.menu = ww; ww.d_FormMessageBox.game = game; ww.d_FormStartServer = new FormStartServer(); ww.d_FormStartServer.menu = ww; ww.d_FormStartServer.game = game; ww.d_FormStartServer.Initialize(); ww.d_FormGameOptions = new FormGameOptions(); ww.d_FormGameOptions.menu = ww; ww.d_FormGameOptions.game = game; ww.d_FormGameOptions.Initialize(); ww.d_FormConnectToIp = new FormConnectToIp(); ww.d_FormConnectToIp.menu = ww; ww.d_FormConnectToIp.game = game; ww.d_FormConnectToIp.Initialize(); maingamewindow.Run(); }