Struct rscript::ScriptManager[][src]

pub struct ScriptManager { /* fields omitted */ }
Expand description

ScriptManager holds all the scripts found, it can be constructed with ScriptManager::default
Initially its empty, to populate it, we can use one of the methods to add scripts, currently only ScriptManager::add_scripts_by_path is provided

Implementations

Look for scripts in the specified folder The script manager will send a Message::Greeting for every script found and the scripts must respond with ScriptInfo

Trigger a hook All scripts that are active and that are listening for this particular hook will receive it

List of current scripts

Mutable list of current scripts, useful for activating/deactivating a script

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.