YYC Toolbox Lua API Help

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

EngineInterface

The YYC Engine interface.

Example

local engine = API.GetEngine()

CallFunction

Allows you to call any function.

Arguments

Name

Type

Description

name

string

The name of the function to call.

...

RValue

The arguments to pass to that function.

Returns

Type

Description

RValue

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