/** @noSelfInFile */ /** * This will be called immediately after the program has been loaded and initialized. * The `args` parameter is a array of strings which is passed from the command line or another program. */ declare let _init: (args: Array) => void; /** * This will be called at regular intervals or (by default) whenever a key/button is pressed/released or mouse is dragged. * The `time` parameter is the amount of time in milliseconds the console has been running for. */ declare let _step: (time: number) => void; /** * This will only be called if the program exits by itself or another program kills it. * It will not be called if there is an error in the program. * The `exitcode` parameter is the numeric code that the program exits with. * This is usually an error code, if the program didn't succeed at its task, or `0` if it did. * If the program was killed, the exit code will be `-1`. */ declare let _shutdown: (exitcode: number) => void; /** * This will automatically be set to the drive that contains the current program file, regardless of current working directory. */ declare const _DRIVE: string; /** * This will automatically be set to the directory that contains the current program file, regardless of current working directory. */ declare const _DIR: string; /** * This will automatically be set to the name of the current program file. */ declare const _FILE: string;