Skip to main content

Crate mimas_bevy

Crate mimas_bevy 

Source
Expand description

Runs mimas scripts in a Bevy app. See the Bevy guide.

Modules§

prelude
Everything an app needs to set up scripts.

Structs§

Entity
Bevy’s Entity for scripts, stored as its bits. The orphan rule stops us from implementing MimasType for Bevy’s own Entity.
MimasPlugin
Runs .mim files as scripts. A file that declares a module gets compiled into every other script instead of running on its own.
MimasScript
A loaded .mim file.
MimasSystems
The systems that compile and run scripts.
Script
Runs a script’s hooks for this entity. Inside a hook, bevy::ecs::me() is this entity.
ScriptError
A script’s compile error or runtime fault. entity is only set if it happened in a hook.

Traits§

MimasApp
Extra setup for scripts, on top of what reflection finds.
ScriptCtx
Access to Bevy from inside natives added with MimasApp::script_installer.