Ejemplo n.º 1
0
 // 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;
 }
Ejemplo n.º 2
0
 // Constructor for Switches
 public TrainPathItem(bool isRightSwitch, float distance, TrainPathItemType itemType)
 {
     ItemType           = itemType;
     DistanceToTrainM   = distance;
     SwitchDivertsRight = isRightSwitch;
 }