During the runtime stage, the game fires events for mods to react to, with functionality being accessible via the methods and attributes of various classes. To access instances of these classes, a handful of global objects are provided, as listed below.
Main global objects:
The main scripting interface through which most of the API is accessed.
Provides an interface for registering game event handlers.
Allows registration and use of functions to communicate between mods.
Allows registration of custom commands for the in-game console.
Provides access to the current mod settings.
Allows printing messages to the calling RCON instance, if any.
Allows rendering of geometric shapes, text and sprites in the game world.
Additional global objects:
definestable, which contains symbolic constants used throughout the API.
globaldictionary, used for storing data that persists across a save-load cycle.
Data types used across the API:
The runtime API documentation is also available in a machine-readable format that developer tools can use.