Skip to content

Commit ac836f1

Browse files
committed
Include reverser information in power supply script
1 parent 386b83c commit ac836f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/Orts.Simulation/Common/Scripting/PowerSupply/LocomotivePowerSupply.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ protected float MaxThrottlePercent
156156
/// </summary>
157157
protected float ThrottlePercent() => Locomotive.ThrottlePercent;
158158

159+
/// <summary>
160+
/// Locomotive direction.
161+
/// </summary>
162+
protected Direction CurrentDirection() => Locomotive.Direction;
163+
159164
/// <summary>
160165
/// Main supply power on delay
161166
/// </summary>

0 commit comments

Comments
 (0)