//0.1: Tease apart distinct start-up goals: // Loading a saved game, // Loading debug "saved game" configurations /// <summary> Initialize more complex game systems </summary> public void Init(string topSeed = null) { TopSeed = topSeed; GameInProgress = false; GameMode.PushEngineMode(EngineMode.NoGameRunning, null); MapWindowSize = new Size(GameSize.Width * 2 / 3, GameSize.Height - 8); MenuWindowSize = new Size(GameSize.Width - 20, GameSize.Height / 4); //0.2.MAP: Put map name in YAML -> CompoundMap -> CreateMapWindow Top = new TopConsole(); Top.EngineUpdate = Update; Top.Parent = SadGlobal.CurrentScreen; Top.IsVisible = true; Top.IsFocused = true; (MenuConsole, MenuWindow) = UIBuilder.CreateM2Window(MenuWindowSize, "Game Menu"); Top.Children.Add(MenuWindow); MessageWindow = UIBuilder.CreateMessageLog(); Messager.MessageWindow = MessageWindow; Top.Children.Add((SadConsole.Console)MessageWindow); MessageWindow.Show(); OpenGameMenu(); }