Track Graph

Struct that holds a cache of a whole train/rail network.

Functions

getStations () → stations : Array<Trace<RailroadStation>>

Returns a list of all trainstations in the network.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Stations

Return Values
Name Type Description

Stations stations

Array<Trace<RailroadStation>>

The list of trainstations in the network.

getTrains () → trains : Array<Trace<Train>>

Returns a list of all trains in the network.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Trains

Return Values
Name Type Description

Trains trains

Array<Trace<Train>>

The list of trains in the network.