Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

action

pickup

function pickup(target: Target, events?: Events) -> void

Example

action::pickup(
    target: {
        stations: [
            "myStation"
        ]
    },
    events: {
        no_station_left: order::cancel
    }
)

drop

function drop(target: Target, events?: Events) -> void

Example

action::drop(
    target: {
        stationareas: [
            "myArea"
        ],
        not: {
            stations: [
                "myStation"
            ]
        }
    }
)

drive

function drive(target: Target, events?: Events) -> void

Example

action::drive(
    target: {
        stations: [
            "myStation"
        ]
    },
    events: {
        no_station_left: log::warn
    }
)