Train Platform
Parent |
The base class for all train station parts.
Properties
Functions
getConnectedPlatform (platformConnection : Object<TrainPlatformConnection>) → oppositeConnection : Trace<TrainPlatformConnection>
Returns the connected platform in the given direction.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Connected Platform |
| Name | Type | Description |
|---|---|---|
Platform Connection |
Object<TrainPlatformConnection> |
The platform connection of which you want to find the opposite connection of. |
| Name | Type | Description |
|---|---|---|
Opposite Connection |
Trace<TrainPlatformConnection> |
The platform connection at the opposite side. |
getDockedLocomotive () → locomotive : Trace<RailroadVehicle>
Returns the currently docked locomotive at the train station.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Docked Locomotive |
| Name | Type | Description |
|---|---|---|
Locomotive |
Trace<RailroadVehicle> |
The currently docked locomotive at the train station. |
getDockedVehicle () → vehicle : Trace<Vehicle>
Returns the currently docked vehicle.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Docked Vehicle |
| Name | Type | Description |
|---|---|---|
Vehicle |
Trace<Vehicle> |
The currently docked vehicle |
getMaster () → master : Trace<RailroadVehicle>
Returns the master platform of this train station.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Master |
| Name | Type | Description |
|---|---|---|
Master |
Trace<RailroadVehicle> |
The master platform of this train station. |
getTrackGraph () → graph : Struct<TrackGraph>
Returns the track graph of which this platform is part of.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Track Graph |
| Name | Type | Description |
|---|---|---|
Graph |
Struct<TrackGraph> |
The track graph of which this platform is part of. |
getTrackPos () → (track : Trace<RailroadTrack>, offset : Float, forward : Float)
Returns the track pos at which this train platform is placed.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Track Pos |
| Name | Type | Description |
|---|---|---|
Track |
Trace<RailroadTrack> |
The track the track pos points to. |
Offset |
Float |
The offset of the track pos. |
Forward |
Float |
The forward direction of the track pos. 1 = with the track direction, -1 = against the track direction |
getAllConnectedPlatforms () → platforms : Array<Trace<TrainPlatformConnection>>
Returns a list of all connected platforms in order.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get all connected Platforms |
| Name | Type | Description |
|---|---|---|
Platforms |
Array<Trace<TrainPlatformConnection>> |
The list of connected platforms |