Calls a bridge method by name. The typed calls such as Player.position are built on it.
The result type.
For example "player.position".
Optionalparams: Record<string, unknown>
The method's parameters, if any.
Subscribes to a game event.
Events are named by the game class and method that raise them. Today the
plugin sends "PlayerPuppet.OnGameAttached", at the main menu and on every
save load. Events from any hooked game function arrive with phase P2.
The event payload.
Event name, for example "PlayerPuppet.OnGameAttached".
Called for every occurrence. The game does not wait for it.
A function that stops the subscription.
Calls a handler whenever the game state changes, and once at the start with the current state.
Reads what the game is showing: menus, photo mode, scenes, the main menu.
Entry point for Tier 2 mods and overlay apps. Use the game instance.