Open Rails

Path.GetPath Method

[This is preliminary documentation and subject to change.]

Get a path from a certain route with given name.

public static Path GetPath(
   Route route,
   string name,
   bool allowNonPlayerPath
);

Parameters

route
The Route for which the paths need to be found
name
The (file) name of the path, without directory, any extension allowed
allowNonPlayerPath
Are non-player paths allowed?

Return Value

The path that has been found and is allowed, or null

See Also

Path Class | ORTS.Menu Namespace