Skip to content

Commit

Permalink
Change DoorState to CurrentDoorState to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Sep 17, 2022
1 parent e4af801 commit 265d33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -223,7 +223,7 @@ public abstract class TrainControlSystem : AbstractTrainScriptClass
/// <summary>
/// Get doors state
/// </summary>
public Func<DoorSide, DoorState> DoorState;
public Func<DoorSide, DoorState> CurrentDoorState;
/// <summary>
/// Returns throttle percent
/// </summary>
Expand Down
Expand Up @@ -362,7 +362,7 @@ public void Initialize()
}
};
Script.ArePantographsDown = () => Locomotive.Pantographs.State == PantographState.Down;
Script.DoorState = (side) => Locomotive.Train.DoorState(Locomotive.Flipped ^ Locomotive.GetCabFlipped() ? Doors.FlippedDoorSide(side) : side);
Script.CurrentDoorState = (side) => Locomotive.Train.DoorState(Locomotive.Flipped ^ Locomotive.GetCabFlipped() ? Doors.FlippedDoorSide(side) : side);
Script.ThrottlePercent = () => Locomotive.ThrottleController.CurrentValue * 100;
Script.MaxThrottlePercent = () => MaxThrottlePercent;
Script.DynamicBrakePercent = () => Locomotive.DynamicBrakeController == null ? 0 : Locomotive.DynamicBrakeController.CurrentValue * 100;
Expand Down

0 comments on commit 265d33d

Please sign in to comment.