Open Rails

MSTSItems.GetTrackSegment(UInt32) Method

[This is preliminary documentation and subject to change.]

Search through 'segments', 'switches' or 'buffer' for the item in relation with the TrackNode index

public GlobalItem GetTrackSegment(
   uint nodeIdx
);

Parameters

nodeIdx
The TrackNode index to search for

Return Value

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

See Also

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