cs
Přihlášení

← Zpět na referenci API

Duty A duty

A duty from the Duties panel: a series of stops a train's agent runs. A script cannot change a duty, only hand it over.

K čemu: To let a train run a duty with startAgent, for instance at a time on the model clock.

clock.at("07:00") {
   trains.Shuttle.startAgent(duties.ShuttleService)
}

Vlastnosti

name → String

Its name.

The duty's name.

log duties.Shuttle.name