Open Rails

Train.FindCommonSectionStart Method

[This is preliminary documentation and subject to change.]

Find start of common section of two trains May check through all subpaths for other train but only through start subpath for this train Return value indices : [0, 0] = own train subpath index [0, 1] = own train route index [1, 0] = other train subpath index [1, 1] = other train route index

public int[,] FindCommonSectionStart(
   int thisTrainStartSubpathIndex,
   int thisTrainStartRouteIndex,
   TCRoutePath otherTrainRoute,
   int startSubpath,
   int startIndex,
   int endSubpath,
   int endIndex,
   int increment
);

Parameters

thisTrainStartSubpathIndex
thisTrainStartRouteIndex
otherTrainRoute
startSubpath
startIndex
endSubpath
endIndex
increment

Return Value

See Also

Train Class | ORTS Namespace