ESCStatement
Extends: Reference
Description
A statement in an ESC file
Property Descriptions
statements
var statements: Array
The list of ESC commands
source
var source: String = ""
The source of this statement, e.g. an ESC script or a class.
Method Descriptions
is_valid
func is_valid() -> bool
Check whether the statement should be run based on its conditions
run
func run() -> var
Execute this statement and return its return code
interrupt
func interrupt()
Interrupt the statement in the middle of its execution.
reset_interrupt
func reset_interrupt()
Resets an interrupted event
Signals
signal finished(event, return_code): Emitted when the event did finish running
signal interrupted(event, return_code): Emitted when the event was interrupted