Expand description
Script is used to add custom logic to scene nodes. See ScriptTrait for more info.
Modules§
- constructor
- A special container that is able to create nodes by their type UUID.
Structs§
- Plugins
RefMut - A simple wrapper for a reference to plugins container. It has some useful methods to fetch
a plugin of certain type. See
PluginsRefMut::of_type_ref
andPluginsRefMut::of_type_mut
. - Script
- A wrapper for actual script instance internals, it used by the engine.
- Script
Context - A set of data, that provides contextual information for script methods.
- Script
Deinit Context - A set of data that will be passed to a script instance just before its destruction.
- Script
Message - A script message of a particular kind.
- Script
Message Context - A set of data, that provides contextual information for script methods.
- Script
Message Sender - A script message sender.
Enums§
- Routing
Strategy - Defines how a script message will be delivered for each node in a hierarchy.
- Script
Message Kind - An message for a node with a script.
Traits§
- Base
Script - Base script trait is used to automatically implement some trait to reduce amount of boilerplate code.
- Script
Message Payload - A script message’s payload.
- Script
Trait - Script is a set predefined methods that are called on various stages by the engine. It is used to add custom behaviour to game entities.