reference monoe

Lua API Reference

monoe.exe's engine base class. This class provides you a quick yet deep access to the engine's internals -- Assemblies. You may check out monoe.system in order to get deeper or more low-level features.

monoe.import

Imports a class by name.

Parameters

NameTypeDescription
classstringName of the class to import.

Returns


monoe.call

Calls a method on an instance.

Parameters

NameTypeDescription
uidintegerThe unique ID of the object.
methodstringThe method name to call.

Returns


monoe.staticcall

Calls a static method on a static class.

Parameters

NameTypeDescription
basestringFull name of the static base class.
methodstringMethod name to call.

Returns


monoe.shell

Opens a shell or executes commands.


fullpath

Environment settings for monoe. Returns the full path of a file.

Parameters

NameTypeDescription
pathstringRelative path.

Returns


subscribe_table


subscribe_object


deep_update


monoe.load

Loads a Lua module and optionally enables hot reloading.

Parameters

NameTypeDescription
namestringName to assign in _G.

Returns


monoe.breakpoint

Triggers a breakpoint in Lua.


monoe.wait

Pauses execution for a specified number of milliseconds.

Parameters

NameTypeDescription
millisecondsinteger

_attach

Attaches an object or its children to the window for rendering.

Parameters

NameTypeDescription
objtableObject with `.uid` or `.root` property

monoe.qualify

Subscribes all known methods of a table to events.

Parameters

NameTypeDescription
selftable
staticboolean|nil

monoe.exit_requested

Called when the user requests an exit. You can override this function in order to handle exit requests.

Parameters

NameTypeDescription
codenumberExit code