File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Simulation/RollingStocks/SubSystems Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,14 @@ public abstract class TrainControlSystem : AbstractTrainScriptClass
188188 /// </summary>
189189 public Func < bool > IsRearCab ;
190190 /// <summary>
191+ /// True if left doors are open
192+ /// </summary>
193+ public Func < bool > AreLeftDoorsOpen ;
194+ /// <summary>
195+ /// True if right doors are open
196+ /// </summary>
197+ public Func < bool > AreRightDoorsOpen ;
198+ /// <summary>
191199 /// True if train brake controller is in emergency position, otherwise false.
192200 /// </summary>
193201 public Func < bool > IsBrakeEmergency ;
Original file line number Diff line number Diff line change @@ -343,6 +343,8 @@ public void Initialize()
343343 Script . CurrentTrainMUDirection = ( ) => Locomotive . Train . MUDirection ; // Direction of train
344344 Script . IsFlipped = ( ) => Locomotive . Flipped ;
345345 Script . IsRearCab = ( ) => Locomotive . UsingRearCab ;
346+ Script . AreLeftDoorsOpen = ( ) => Locomotive . DoorLeftOpen ;
347+ Script . AreRightDoorsOpen = ( ) => Locomotive . DoorRightOpen ;
346348 Script . IsBrakeEmergency = ( ) => Locomotive . TrainBrakeController . EmergencyBraking ;
347349 Script . IsBrakeFullService = ( ) => Locomotive . TrainBrakeController . TCSFullServiceBraking ;
348350 Script . PowerAuthorization = ( ) => PowerAuthorization ;
You can’t perform that action at this time.
0 commit comments