private void handleCargoInventoryEvent(CargoInventoryEvent @event) { Ship ship = GetCurrentShip(); if (ship != null) { ship.cargocarried = @event.cargocarried; } writeShips(); }
private void handleCargoInventoryEvent(CargoInventoryEvent @event) { Ship ship = GetCurrentShip(); ship.cargo = @event.inventory; }