コード例 #1
0
ファイル: ShipMonitor.cs プロジェクト: pekwalker/EDDI
        private void handleCargoInventoryEvent(CargoInventoryEvent @event)
        {
            Ship ship = GetCurrentShip();

            if (ship != null)
            {
                ship.cargocarried = @event.cargocarried;
            }
            writeShips();
        }
コード例 #2
0
        private void handleCargoInventoryEvent(CargoInventoryEvent @event)
        {
            Ship ship = GetCurrentShip();

            ship.cargo = @event.inventory;
        }