Open Rails

TrackDatabaseFile.GetTrJunctionNode Method

[This is preliminary documentation and subject to change.]

Provide a link to the TrJunctionNode for the switch track with the specified UiD on the specified tile. Called by switch track shapes to determine the correct position of the points.

public TrJunctionNode GetTrJunctionNode(
   int tileX,
   int tileZ,
   int worldId
);

Parameters

tileX
X-value of the current Tile
tileZ
Z-value of the current Tile
worldId
world ID as defined in world file

Return Value

The TrJunctionNode corresponding the the tile and worldID, null if not found

See Also

TrackDatabaseFile Class | Orts.Formats.Msts Namespace