public void Show() { var form = new Form() { Size = new Size(300, 800) }; var panel = new StartGameConfigPanel { Dock = DockStyle.Fill }; panel.SetMaps(MapLoader.LoadDefaultMaps().ToArray()); panel.SetAis(new AiFactory("Basic", () => new JunkAi())); panel.MapChanged += map => form.Text = map.Name; panel.AiSelected += factory => form.Text = factory.Name; form.Controls.Add(panel); form.ShowDialog(); }
public void SetUp() { map = MapLoader.LoadMapByName("sample.json"); simulator = new GameSimulator(map.Map, new Settings()); }