Block rail tile
$object.blockrailtile:description$
Properties
id
- Object id, each object has a unique id.
name
≥ 0.3- $object.blockrailtile.name:description$
trains
- $object.blockrailtile.trains:description$
Events
on_train_assigned
$object.blockrailtile.on_train_assigned:description$
Handler:function (train, block, user_data)
train
- Train that is assigned to the block.
block
- The block that the train is assigned to.
user_data
- User data that was set or
nil
if no user data was set during connect.
on_train_entered
≥ 0.3
Fired when a Train enters the block.
Handler:function (train, block, direction, user_data)
train
- Train that entered the block.
block
- The block that is entered.
direction
- Train direction from the block perspective, a Block train direction value.
user_data
- User data that was set or
nil
if no user data was set during connect.
on_train_left
≥ 0.3
Fired when a Train has left the block.
Handler:function (train, block, direction, user_data)
train
- Train that entered the block.
block
- The block that the train left.
direction
- Train direction from the block perspective, a Block train direction value.
user_data
- User data that was set or
nil
if no user data was set during connect.
on_train_removed
$object.blockrailtile.on_train_removed:description$
Handler:function (train, block, user_data)
train
- Train that is removed from the block.
block
- The block that the train is removed from.
user_data
- User data that was set or
nil
if no user data was set during connect.
on_train_reserved
≥ 0.3
Fired when a Train reserves the block.
Handler:function (train, block, direction, user_data)
train
- Train that is reserved the block.
block
- The block that is reserved.
direction
- Train direction from the block perspective, a Block train direction value.
user_data
- User data that was set or
nil
if no user data was set during connect.