Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chirp use statement #73

Open
3 tasks
nicopap opened this issue Aug 26, 2023 · 0 comments · May be fixed by #110
Open
3 tasks

Chirp use statement #73

nicopap opened this issue Aug 26, 2023 · 0 comments · May be fixed by #110
Labels
C-chirp relates to the cuicui_chirp file format crate specifically C-dsl relates to the cuicui_dsl crate specifically T-enhancement New feature or request

Comments

@nicopap
Copy link
Owner

nicopap commented Aug 26, 2023

Currently nothing prevents someone from loading a chirp file within another chirp files.

But to make it more ergonomic, we should add a direct way of doing it.

use scene_file

Then, scene_file can be called like a template with zero arguments: scene_file!(). In addition, it should be possible to use templates defined in other files with a use scene_file/specific_template, then calling specific_template!(…).

Would load in-line scene_file.chirp.

Ideally we'd check that:

  • It works correctly at initial load
  • Works correctly when hot-reloading the parent chirp file
  • Works correctly when hot-reloading the referred chirp file

This is blocked on bevy 0.12 asset v2

@nicopap nicopap added T-enhancement New feature or request C-chirp relates to the cuicui_chirp file format crate specifically labels Aug 26, 2023
@nicopap nicopap changed the title Test chirp files containing references to other chirp files Chirp use statement Aug 28, 2023
@nicopap nicopap added the C-dsl relates to the cuicui_dsl crate specifically label Aug 28, 2023
@nicopap nicopap linked a pull request Nov 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-chirp relates to the cuicui_chirp file format crate specifically C-dsl relates to the cuicui_dsl crate specifically T-enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant