Пример #1
0
        public void AddAllChips()
        {
            var ship  = Init(100);
            var chips = ChipParser.GetAllChips();

            foreach (var chip in chips)
            {
                ship.Chips.Add(chip);
            }
        }
Пример #2
0
 protected override void Update()
 {
     description.Text = string.Empty;
     shop.Items.Clear();
     shop.Items.AddRange(ChipParser.GetAllChips());
     shop.Items.AddRange(ShipParser.GetAllShips());
     shop.Items.AddRange(GunParser.GetGunsToShop());
     inventory.Items.Clear();
     foreach (var item in ship.Inventory.GetItems)
     {
         inventory.Items.Add(item);
     }
     menuButton.Visible = false;
 }