Exemplo n.º 1
0
 public ItemInfo(ItemMaster itemMaster, ItemInventory itemInventory)
 {
     _itemMaster    = itemMaster;
     _itemInventory = itemInventory;
     Counter        = new AlarmCounter(() => _itemInventory.Count)
     {
         Margin = 5
     };
 }
Exemplo n.º 2
0
 public ShipInfo(ShipMaster shipMaster, ShipInventory shipInventory, ItemInventory itemInventory)
 {
     _shipMaster    = shipMaster;
     _shipInventory = shipInventory;
     _fleets        = Enumerable.Range(0, FleetCount).Select((x, i) => new Fleet(_shipInventory, i, () => _hqLevel))
                      .ToArray();
     _itemInventory = itemInventory;
     Counter        = new AlarmCounter(() => _shipInventory.Count)
     {
         Margin = 5
     };
 }