Expand description
Event handlers and event types for scripting.
Structs§
- Callback
Label - A string which disallows common invalid characters in callback labels, particularly at the start of the string
- ForPlugin
- Wrapper around a script event making it available to read by a specific plugin only
- OnScript
Loaded - Fired when a script is successfully loaded A callback label for the event: “on_script_loaded”
- OnScript
Reloaded - Fired when a script is reloaded (loaded after being unloaded)
This callback receives the value returned by the
on_script_unloaded
callback if any were returned A callback label for the event: “on_script_reloaded” - OnScript
Unloaded - Fired when a script is unloaded before a reload, if a value is returned, it will be passed to the
on_script_reloaded
callback A callback label for the event: “on_script_unloaded” - Script
Asset Modified Event - Emitted when a script asset is modified and all its attachments require re-loading
- Script
Attached Event - Emitted when a script is attached.
- Script
Callback Event - A callback event meant to trigger a callback in a subset/set of scripts in the world with the given arguments
- Script
Callback Response Event - Event published when a script completes a callback and a response is requested.
- Script
Detached Event - Emitted when a script is detached.
- Script
Error Event - An error coming from a script
Enums§
- Recipients
- Describes the designated recipients of a script event
Traits§
- Into
Callback Label - A trait for types that can be converted into a callback label