Skip to content

Scripting Language

Tim Sarbin edited this page Aug 23, 2021 · 4 revisions

Functions

System

Shutdown

void shutdown()

Shuts down the engine completely, quitting the application.

Set Boot Test

void setBootText(text: string)

Sets the lower text in the boot splash screen.

Exit Boot Mode

void exitBootMode()

Exits the boot splash and starts the main game render loop.

Get Engine Settings

EngineSettings getEngineSettings()

Returns the engine settings object.

Utility

Format String

void fmt(format: string, values...: any): string

Formats a string based on the golfing string format.

Join Path

string joinPath(path...: string)

Joins a list of paths together in an os-dependent way.

Log

void log(level: string, message: string)

Writes a log entry message based on the log level. The log level can be info, error, fatal, warn, debug, or trace.

Sleep

void sleep(msec: int)

Sleeps for the specified number of milliseconds.

Clone this wiki locally