Open Rails

Train.CheckSignalPassed Method

[This is preliminary documentation and subject to change.]

Check if train went passed signal if so, and signal was at danger, set train Out_Of_Control

public int CheckSignalPassed(
   int direction,
   TCPosition trainPosition,
   TCPosition trainPreviousPos
);

See Also

Train Class | ORTS Namespace