コード例 #1
0
        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();
        }
コード例 #2
0
 public void SetUp()
 {
     map       = MapLoader.LoadMapByName("sample.json");
     simulator = new GameSimulator(map.Map, new Settings());
 }