Open Rails

MSTSItems.GetTrackSegment(Int32, Int32) Method

[This is preliminary documentation and subject to change.]

Search through 'segments' for the item in relation with the given TrackNodeIdx and sectionIdx This methof return only a TrackSegment

public TrackSegment GetTrackSegment(
   int nodeIdx,
   int sectionIdx
);

Parameters

nodeIdx
The index of the node in TrackNode
sectionIdx
The index of the vector in the TrackNode

Return Value

TrackSegment

See Also

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