Module cuicui_chirp::loader
source · Expand description
Bevy [AssetLoader
] for the chirp file format.
Adds a Loader for the .chirp
file format ChirpLoader
and a global
“handles” registry WorldHandles
, accessible as a bevy [Resource
].
Handles are used for code
statements in .chirp
files.
The crate::loader::Plugin
defined in this module adds ChirpLoader
as
an asset loader. Any [Entity
] with a Handle<Chirp>
will be replaced
by several entities, the one at the root of the .chirp
file.
Structs
- A
Chirp
scene. It’s very close to a bevy [Scene
]. - Components necessary to load chirp files.
- Loads a bevy
Scene
declared in achirp
file. - The chirp loader plugin. Enables loading scene
.chirp
files with the bevy [AssetLoader
]. - The
SpawnChirp
schedule spawns chirp scenes betweenUpdate
andPostUpdate
. - Global
ChirpLoader
handle registry. Used in thecode
statements of the chirp language.
Enums
- Occurs when failing update the global chirp function registry
WorldHandles
when adding a function. - Controls loading and reloading of
Chirp
scenes within the main bevy [World
].