Ejemplo n.º 1
0
        private void handleCargoInventoryEvent(CargoInventoryEvent @event)
        {
            Ship ship = GetCurrentShip();

            if (ship != null)
            {
                ship.cargocarried = @event.cargocarried;
            }
            writeShips();
        }
Ejemplo n.º 2
0
        private void handleCargoInventoryEvent(CargoInventoryEvent @event)
        {
            Ship ship = GetCurrentShip();

            ship.cargo = @event.inventory;
        }