en
Sign in

API reference

Everything a script can use, object by object. With every object stands what it is, what you use it for and an example, and then its properties (without brackets: blocks.B3.occupied), methods (with brackets: turnouts.W5.diverging()) and events (a handler as a closure: stations.South.onArrival { Train train -> … }). How that works is in Objects, collections and events.

“Gives” is the type: what a property or method returns, or what an event passes to the handler. A click on an object's name takes you to that object; type in the search box to filter on object, name or explanation.

This is version 2 of what scripts see. Things are only added; what is there does not change its name.

The objects

The collections

CollectionHolds
trainsTrain
devicesDevice
placesPlace
yardsPlace
turnoutsTurnout
stationsPlace
stagingPlace
signalsSignal
blocksBlock
dutiesDuty