Skip to content

Commit

Permalink
patch: export scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Aug 14, 2024
1 parent dc88ad2 commit f9f6b3a
Show file tree
Hide file tree
Showing 15 changed files with 30,581 additions and 30,549 deletions.
20 changes: 12 additions & 8 deletions examples/build_scenes.rs → examples/export_scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ fn plugin(app: &mut App) {
}

fn main() -> Result<()> {
let checks = DynamicSceneChecks {
resource_checks: false,
entity_checks: true,
component_checks: true,
..Default::default()
let config = SceneExportConfig {
format: SceneExportFormat::Ron,
checks: DynamicSceneChecks {
resource_checks: false,
entity_checks: true,
component_checks: true,
..Default::default()
},
..default()
};


SceneGroupExporter::new(plugin)
.with_checks(checks.clone())
.with_config(config.clone())
.with_dir(DIR)
.with_query::<(Without<ObserverState>, Without<Observer<OnLogMessage, ()>>)>(
)
Expand All @@ -29,7 +33,7 @@ fn main() -> Result<()> {
.export()?;

SceneGroupExporter::new(plugin)
.with_checks(checks.clone())
.with_config(config.clone())
.with_dir(DIR)
.with_query::<(Without<ObserverState>, Without<Observer<OnLogMessage, ()>>)>(
)
Expand All @@ -45,7 +49,7 @@ fn main() -> Result<()> {


SceneGroupExporter::new((plugin, plugin_ml))
.with_checks(checks)
.with_config(config.clone())
.with_dir(DIR)
.without_clear_target()
.with_query::<(Without<ObserverState>, Without<Observer<OnLogMessage, ()>>)>(
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ example example *args:
cmd *args:
cd /cygdrive/c/work/beet && {{args}}

build-scenes *args:
cargo run --example build_scenes {{args}}
export-scenes *args:
cargo run --example export_scenes {{args}}
app *args:
cargo run --example app_full {{args}}

Expand Down
18 changes: 9 additions & 9 deletions scenes/beet-debug.ron
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(
resources: {
"beet_flow::lifecycle::beet_debug_plugin::BeetDebugConfig": (
log_on_start: true,
log_on_update: false,
log_on_stop: false,
log_to_stdout: true,
),
},
entities: {},
resources: {
"beet_flow::lifecycle::beet_debug_plugin::BeetDebugConfig": (
log_on_start: true,
log_on_update: false,
log_on_stop: false,
log_to_stdout: true,
),
},
entities: {},
)
Loading

0 comments on commit f9f6b3a

Please sign in to comment.