Skip to content

ApiApi

A Registry for all _Lib APIs.

Description

All _Lib APIs are registered to and accessed from the ApiApi. It is accessed via Global.API and can also be used by mods to registers APIs of their own. APIs registered to the ApiApi can be directly referenced from it.

Example:

# register the ModApi
Global.API.register("ModApi", mod_api_instance)
# call some method on the ModApi
Global.API.ModApi.some_method()

Methods

void register ( String api, Object api )

Signals

api_registered ( String api_id, Object api ):
Emitted when an API is registered.

Method Descriptions

void register ( String api, Object api ):
Registers an API under the name api