These are the functions that will be called for each plugin, if the function exists.
The main entry point. (Yieldable)
void Update(int dt)
Called every frame.
dtis the delta time (milliseconds since last frame).
Render function called every frame.
Render function called every frame intended for UI.
Render function called every frame intended only for menu items in UI.
bool OnKeyPress(bool down, uint key)
Called whenever a key is pressed on the keyboard.
bool OnMouseButton(bool down, int button, int x, int y)
Called whenever a mouse button is pressed.
void OnMouseMove(int x, int y)
Called whenever the mouse moves.
Called when a setting in the settings panel was changed.
void OnLoadCallback(CMwNod@ nod)
Called when a Nod is loaded. You have to call
RegisterLoadCallbackfirst before this is called.
void OnSetCurChallenge(CGameCtnChallenge@ challenge)
Called when a new challenge is loaded into the game app, before the decoration has been loaded.
Called when the plugin is getting disabled from the settings.