Identification
$object.identification:description$
Properties
id
Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).
name
$object.identification.name:description$
Events
on_event
$object.identification.on_event:description$
Handler signature
function (type, identifier, direction, category, user_data)
Arguments
-
type- $object.identification.on_event.parameter.type:description$ -
identifier- $object.identification.on_event.parameter.identifier:description$ -
direction- $object.identification.on_event.parameter.direction:description$ -
category- $object.identification.on_event.parameter.category:description$ -
user_data- optional user-provided value (see Events).