Global Functions
These functions are accessible globally.
stop()
Stop runtime execution.
stop(): void;
Stops runtime execution with a specified message.
stop(message: string): void;
printLog()
Prints a log message.
printLog(message: string): void;
Prints a log message with additional details.
printLog(message: string, details: string): void;
parseInt()
Converts a string to an integer.
parseInt(value: string): number;
Converts a string to an integer with a specified radix.
parseInt(value: string, radix?: number): number;
parseFloat()
Converts a string to a floating-point number.
parseFloat(value: string): number;
notification()
Show notification message.
notification(message: string): void;
getMapColor()
Get color based on an index. This method uses the same internal color mapping of the Map to generate colors in hexadecimal based on a given index.
getMapColor(index: number): string;