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

            if (ship != null)
            {
                ship.cargocarried = @event.cargocarried;
            }
            writeShips();
        }
コード例 #2
0
 public Task Handle(CargoUpdatedEvent notification, CancellationToken cancellationToken)
 {
     return(Task.CompletedTask);
 }