public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommands.ControlForwards, new Action[] { () => SteamLocomotive.StopReverseIncrease(), () => ReverserControlForwards() }); UserInputCommands.Add(UserCommands.ControlBackwards, new Action[] { () => SteamLocomotive.StopReverseDecrease(), () => ReverserControlBackwards() }); UserInputCommands.Add(UserCommands.ControlInjector1Increase, new Action[] { () => SteamLocomotive.StopInjector1Increase(), () => SteamLocomotive.StartInjector1Increase(null) }); UserInputCommands.Add(UserCommands.ControlInjector1Decrease, new Action[] { () => SteamLocomotive.StopInjector1Decrease(), () => SteamLocomotive.StartInjector1Decrease(null) }); UserInputCommands.Add(UserCommands.ControlInjector2Increase, new Action[] { () => SteamLocomotive.StopInjector2Increase(), () => SteamLocomotive.StartInjector2Increase(null) }); UserInputCommands.Add(UserCommands.ControlInjector2Decrease, new Action[] { () => SteamLocomotive.StopInjector2Decrease(), () => SteamLocomotive.StartInjector2Decrease(null) }); UserInputCommands.Add(UserCommands.ControlInjector1, new Action[] { Noop, () => new ToggleInjectorCommand(Viewer.Log, 1) }); UserInputCommands.Add(UserCommands.ControlInjector2, new Action[] { Noop, () => new ToggleInjectorCommand(Viewer.Log, 2) }); UserInputCommands.Add(UserCommands.ControlBlowerIncrease, new Action[] { () => SteamLocomotive.StopBlowerIncrease(), () => SteamLocomotive.StartBlowerIncrease(null) }); UserInputCommands.Add(UserCommands.ControlBlowerDecrease, new Action[] { () => SteamLocomotive.StopBlowerDecrease(), () => SteamLocomotive.StartBlowerDecrease(null) }); UserInputCommands.Add(UserCommands.ControlSteamHeatIncrease, new Action[] { () => SteamLocomotive.StopSteamHeatIncrease(), () => SteamLocomotive.StartSteamHeatIncrease(null) }); UserInputCommands.Add(UserCommands.ControlSteamHeatDecrease, new Action[] { () => SteamLocomotive.StopSteamHeatDecrease(), () => SteamLocomotive.StartSteamHeatDecrease(null) }); UserInputCommands.Add(UserCommands.ControlDamperIncrease, new Action[] { () => SteamLocomotive.StopDamperIncrease(), () => SteamLocomotive.StartDamperIncrease(null) }); UserInputCommands.Add(UserCommands.ControlDamperDecrease, new Action[] { () => SteamLocomotive.StopDamperDecrease(), () => SteamLocomotive.StartDamperDecrease(null) }); UserInputCommands.Add(UserCommands.ControlFireboxOpen, new Action[] { () => SteamLocomotive.StopFireboxDoorIncrease(), () => SteamLocomotive.StartFireboxDoorIncrease(null) }); UserInputCommands.Add(UserCommands.ControlFireboxClose, new Action[] { () => SteamLocomotive.StopFireboxDoorDecrease(), () => SteamLocomotive.StartFireboxDoorDecrease(null) }); UserInputCommands.Add(UserCommands.ControlFiringRateIncrease, new Action[] { () => SteamLocomotive.StopFiringRateIncrease(), () => SteamLocomotive.StartFiringRateIncrease(null) }); UserInputCommands.Add(UserCommands.ControlFiringRateDecrease, new Action[] { () => SteamLocomotive.StopFiringRateDecrease(), () => SteamLocomotive.StartFiringRateDecrease(null) }); UserInputCommands.Add(UserCommands.ControlFireShovelFull, new Action[] { Noop, () => new FireShovelfullCommand(Viewer.Log) }); UserInputCommands.Add(UserCommands.ControlCylinderCocks, new Action[] { Noop, () => new ToggleCylinderCocksCommand(Viewer.Log) }); UserInputCommands.Add(UserCommands.ControlCylinderCompound, new Action[] { Noop, () => new ToggleCylinderCompoundCommand(Viewer.Log) }); UserInputCommands.Add(UserCommands.ControlTroughRefill, new Action[] { Noop, () => ToggleTroughRefill() }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommand.ControlBatterySwitchClose, new Action[] { () => new BatterySwitchCloseButtonCommand(Viewer.Log, false), () => { new BatterySwitchCloseButtonCommand(Viewer.Log, true); new BatterySwitchCommand(Viewer.Log, !DieselLocomotive.LocomotivePowerSupply.BatterySwitch.CommandSwitch); } }); UserInputCommands.Add(UserCommand.ControlBatterySwitchOpen, new Action[] { () => new BatterySwitchOpenButtonCommand(Viewer.Log, false), () => new BatterySwitchOpenButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlMasterKey, new Action[] { Noop, () => new ToggleMasterKeyCommand(Viewer.Log, !DieselLocomotive.LocomotivePowerSupply.MasterKey.CommandSwitch) }); UserInputCommands.Add(UserCommand.ControlServiceRetention, new Action[] { () => new ServiceRetentionButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlElectricTrainSupply, new Action[] { Noop, () => new ElectricTrainSupplyCommand(Viewer.Log, !DieselLocomotive.LocomotivePowerSupply.ElectricTrainSupplySwitch.CommandSwitch) }); UserInputCommands.Add(UserCommand.ControlTractionCutOffRelayClosingOrder, new Action[] { () => new TractionCutOffRelayClosingOrderButtonCommand(Viewer.Log, false), () => { new TractionCutOffRelayClosingOrderCommand(Viewer.Log, !DieselLocomotive.DieselPowerSupply.TractionCutOffRelay.DriverClosingOrder); new TractionCutOffRelayClosingOrderButtonCommand(Viewer.Log, true); } }); UserInputCommands.Add(UserCommand.ControlTractionCutOffRelayOpeningOrder, new Action[] { () => new TractionCutOffRelayOpeningOrderButtonCommand(Viewer.Log, false), () => new TractionCutOffRelayOpeningOrderButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlTractionCutOffRelayClosingAuthorization, new Action[] { Noop, () => new TractionCutOffRelayClosingAuthorizationCommand(Viewer.Log, !DieselLocomotive.DieselPowerSupply.TractionCutOffRelay.DriverClosingAuthorization) }); UserInputCommands.Add(UserCommand.ControlVacuumExhausterPressed, new Action[] { () => new VacuumExhausterCommand(Viewer.Log, false), () => new VacuumExhausterCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlDieselPlayer, new Action[] { Noop, () => new TogglePlayerEngineCommand(Viewer.Log) }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommand.ControlBatterySwitchClose, new Action[] { () => new BatterySwitchCloseButtonCommand(Viewer.Log, false), () => { new BatterySwitchCloseButtonCommand(Viewer.Log, true); new BatterySwitchCommand(Viewer.Log, !ElectricLocomotive.LocomotivePowerSupply.BatterySwitch.CommandSwitch); } }); UserInputCommands.Add(UserCommand.ControlBatterySwitchOpen, new Action[] { () => new BatterySwitchOpenButtonCommand(Viewer.Log, false), () => new BatterySwitchOpenButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlMasterKey, new Action[] { Noop, () => new ToggleMasterKeyCommand(Viewer.Log, !ElectricLocomotive.LocomotivePowerSupply.MasterKey.CommandSwitch) }); UserInputCommands.Add(UserCommand.ControlServiceRetention, new Action[] { () => new ServiceRetentionButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlElectricTrainSupply, new Action[] { Noop, () => new ElectricTrainSupplyCommand(Viewer.Log, !ElectricLocomotive.LocomotivePowerSupply.ElectricTrainSupplySwitch.CommandSwitch) }); UserInputCommands.Add(UserCommand.ControlCircuitBreakerClosingOrder, new Action[] { () => new CircuitBreakerClosingOrderButtonCommand(Viewer.Log, false), () => { new CircuitBreakerClosingOrderCommand(Viewer.Log, !ElectricLocomotive.ElectricPowerSupply.CircuitBreaker.DriverClosingOrder); new CircuitBreakerClosingOrderButtonCommand(Viewer.Log, true); } }); UserInputCommands.Add(UserCommand.ControlCircuitBreakerOpeningOrder, new Action[] { () => new CircuitBreakerOpeningOrderButtonCommand(Viewer.Log, false), () => new CircuitBreakerOpeningOrderButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlCircuitBreakerClosingAuthorization, new Action[] { Noop, () => new CircuitBreakerClosingAuthorizationCommand(Viewer.Log, !ElectricLocomotive.ElectricPowerSupply.CircuitBreaker.DriverClosingAuthorization) }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommand.ControlCircuitBreakerClosingOrder, new Action[] { () => new CircuitBreakerClosingOrderButtonCommand(Viewer.Log, false), () => { new CircuitBreakerClosingOrderCommand(Viewer.Log, !ElectricLocomotive.PowerSupply.CircuitBreaker.DriverClosingOrder); new CircuitBreakerClosingOrderButtonCommand(Viewer.Log, true); } }); UserInputCommands.Add(UserCommand.ControlCircuitBreakerOpeningOrder, new Action[] { () => new CircuitBreakerOpeningOrderButtonCommand(Viewer.Log, false), () => new CircuitBreakerOpeningOrderButtonCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlCircuitBreakerClosingAuthorization, new Action[] { Noop, () => new CircuitBreakerClosingAuthorizationCommand(Viewer.Log, !ElectricLocomotive.PowerSupply.CircuitBreaker.DriverClosingAuthorization) }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommands.ControlDieselPlayer, new Action[] { Noop, () => new TogglePlayerEngineCommand(Viewer.Log) }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommands.ControlDieselPlayer, new Action[] { Noop, () => StartStopPlayerEngine() }); UserInputCommands.Add(UserCommands.ControlDieselHelper, new Action[] { Noop, () => StartStopHelpersEngine() }); base.InitializeUserInputCommands(); }
public override void InitializeUserInputCommands() { UserInputCommands.Add(UserCommand.ControlVacuumExhausterPressed, new Action[] { () => new VacuumExhausterCommand(Viewer.Log, false), () => new VacuumExhausterCommand(Viewer.Log, true) }); UserInputCommands.Add(UserCommand.ControlDieselPlayer, new Action[] { Noop, () => new TogglePlayerEngineCommand(Viewer.Log) }); base.InitializeUserInputCommands(); }