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 a chirp file.
  • The chirp loader plugin. Enables loading scene .chirp files with the bevy [AssetLoader].
  • The SpawnChirp schedule spawns chirp scenes between Update and PostUpdate.
  • Global ChirpLoader handle registry. Used in the code statements of the chirp language.

Enums