// Constructor for Station or Tunnel public TrainPathItem(float distance, int platformLength, TrainPathItemType itemType) { ItemType = itemType; AuthorityType = EndAuthorityType.NoPathReserved; SignalState = TrackMonitorSignalAspect.Clear2; AllowedSpeedMpS = -1; DistanceToTrainM = distance; StationPlatformLength = platformLength; }
// Constructor for Switches public TrainPathItem(bool isRightSwitch, float distance, TrainPathItemType itemType) { ItemType = itemType; DistanceToTrainM = distance; SwitchDivertsRight = isRightSwitch; }