File tree 3 files changed +19
-2
lines changed
RunActivity/Viewer3D/RollingStock
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()
2155
2155
[ Serializable ( ) ]
2156
2156
public sealed class TogglePlayerEngineCommand : Command
2157
2157
{
2158
- public static MSTSDieselLocomotive Receiver { get ; set ; }
2158
+ public static MSTSLocomotive Receiver { get ; set ; }
2159
2159
2160
2160
public TogglePlayerEngineCommand ( CommandLog log )
2161
2161
: base ( log )
Original file line number Diff line number Diff line change @@ -694,6 +694,23 @@ public void SetCommandReceivers()
694
694
VacuumExhausterCommand . Receiver = dieselLocomotive ;
695
695
}
696
696
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
+
697
714
ToggleOdometerCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
698
715
ResetOdometerCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
699
716
ToggleOdometerDirectionCommand . Receiver = ( MSTSLocomotive ) PlayerLocomotive ;
Original file line number Diff line number Diff line change 31
31
using Orts . Simulation . RollingStocks ;
32
32
using Orts . Simulation . RollingStocks . SubSystems ;
33
33
using Orts . Simulation . RollingStocks . SubSystems . Controllers ;
34
+ using Orts . Simulation . RollingStocks . SubSystems . PowerSupplies ;
34
35
using Orts . Viewer3D . Common ;
35
36
using Orts . Viewer3D . Popups ;
36
37
using Orts . Viewer3D . RollingStock . SubSystems ;
39
40
using ORTS . Common . Input ;
40
41
using ORTS . Scripting . Api ;
41
42
using Event = Orts . Common . Event ;
42
- using Orts . Simulation . RollingStocks . SubSystems . PowerSupplies ;
43
43
44
44
namespace Orts . Viewer3D . RollingStock
45
45
{
You can’t perform that action at this time.
0 commit comments