Open Rails

MSTSItems.GetTrackSegment(TrackNode, Int32) Method

[This is preliminary documentation and subject to change.]

Search through 'segments', 'switches' or 'buffer' for the item in relation with the given TrackNode and sectionIdx

public GlobalItem GetTrackSegment(
   TrackNode node,
   int sectionIdx
);

Parameters

node
The TrackNode to search for
sectionIdx
in case of multiple VectorNode, the index of the relevant vector

Return Value

GlobalItem, use the typeItem as 'TypeItem' to do the casting

See Also

MSTSItems Class | Orts.Formats.OR Namespace | MSTSItems.GetTrackSegment Overload List