File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
RunActivity/Viewer3D/RollingStock Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -2155,7 +2155,7 @@ public override void Redo()
21552155 [ Serializable ( ) ]
21562156 public sealed class TogglePlayerEngineCommand : Command
21572157 {
2158- public static MSTSDieselLocomotive Receiver { get ; set ; }
2158+ public static MSTSLocomotive Receiver { get ; set ; }
21592159
21602160 public TogglePlayerEngineCommand ( CommandLog log )
21612161 : base ( log )
Original file line number Diff line number Diff line change @@ -694,6 +694,23 @@ public void SetCommandReceivers()
694694 VacuumExhausterCommand . Receiver = dieselLocomotive ;
695695 }
696696
697+ if ( PlayerLocomotive is MSTSControlTrailerCar controlCar )
698+ {
699+ VoltageSelectorCommand . Receiver = controlCar . LocomotivePowerSupply ;
700+ PantographSelectorCommand . Receiver = controlCar . LocomotivePowerSupply ;
701+ PowerLimitationSelectorCommand . Receiver = controlCar . LocomotivePowerSupply ;
702+ CircuitBreakerClosingOrderCommand . Receiver = controlCar . LocomotivePowerSupply ;
703+ CircuitBreakerClosingOrderButtonCommand . Receiver = controlCar . LocomotivePowerSupply ;
704+ CircuitBreakerOpeningOrderButtonCommand . Receiver = controlCar . LocomotivePowerSupply ;
705+ CircuitBreakerClosingAuthorizationCommand . Receiver = controlCar . LocomotivePowerSupply ;
706+
707+ TractionCutOffRelayClosingOrderCommand . Receiver = controlCar . LocomotivePowerSupply ;
708+ TractionCutOffRelayClosingOrderButtonCommand . Receiver = controlCar . LocomotivePowerSupply ;
709+ TractionCutOffRelayOpeningOrderButtonCommand . Receiver = controlCar . LocomotivePowerSupply ;
710+ TractionCutOffRelayClosingAuthorizationCommand . Receiver = controlCar . LocomotivePowerSupply ;
711+ TogglePlayerEngineCommand . Receiver = controlCar ;
712+ }
713+
697714 ToggleOdometerCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
698715 ResetOdometerCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
699716 ToggleOdometerDirectionCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
Original file line number Diff line number Diff line change 3131using Orts . Simulation . RollingStocks ;
3232using Orts . Simulation . RollingStocks . SubSystems ;
3333using Orts . Simulation . RollingStocks . SubSystems . Controllers ;
34+ using Orts . Simulation . RollingStocks . SubSystems . PowerSupplies ;
3435using Orts . Viewer3D . Common ;
3536using Orts . Viewer3D . Popups ;
3637using Orts . Viewer3D . RollingStock . SubSystems ;
3940using ORTS . Common . Input ;
4041using ORTS . Scripting . Api ;
4142using Event = Orts . Common . Event ;
42- using Orts . Simulation . RollingStocks . SubSystems . PowerSupplies ;
4343
4444namespace Orts . Viewer3D . RollingStock
4545{
You can’t perform that action at this time.
0 commit comments