API
This namespace provides access to most of the API functionality. A nightmare to maintain internally, you're right 🎉
GetEngine
Provides access to the internal YYC engine.
Arguments
None
Returns
Type | Description |
---|---|
The YYC Engine interface. |
Example
local engine = API.GetEngine()
CallFunction
Allows you to call any function.
Arguments
Name | Type | Description |
---|---|---|
name |
| The name of the function to call. |
... | The arguments to pass to that function. |
Returns
Type | Description |
---|---|
The return value defined by the GameMaker manual. |
Example
API.CallFunction("show_message", RValue("Hello, world!"))
-- Calls show_message("Hello, world!")
Last modified: 29 March 2025