예제 #1
0
 public static void HandleCargoEvents(object sender, CargoEvent.CargoEventArgs evt)
 {
     if (evt?.Inventory != null && evt?.Vessel == "Ship")
     {
         EliteData.LimpetCount =
             evt.Inventory.Where(x => x.Name.ToLower().Contains("drones")).Sum(x => x.Count);
     }
 }
예제 #2
0
 private void FireCargoUpdatedEvent(CargoEvent.CargoEventArgs evt) => CargoUpdated?.Invoke(this, evt);