Skip to main content

Module project

Module project 

Source
Expand description

Zero-Rust game project loading: manifest → DSL compile → script registry.

LoadedProject::load reads the .dotzuki-editor.json manifest, compiles every DSL file under the manifest’s dsl_dirs (in memory), registers the compiled scenes with a ScriptLoader, and keeps the storyline routing table and a scene-name ↔ file-stem index for entry resolution.

All file access goes through the ProjectFiles VFS: load is the on-disk convenience (DiskFiles); load_with_files boots a project from any backend (e.g. an in-memory [MemoryFiles] on WASM). DSL source_paths are project-relative POSIX paths in both cases (data/maps/<id>/script.scene), which is what the runtime’s scene ↔ map matching keys on.

Structs§

LoadedProject
A fully loaded zero-Rust game project.

Constants§

DEFAULT_MAPS_DIR
Default maps directory under dataRoot when no map activity configures mapsDir.