use beet_examples::prelude::*;
use bevy::prelude::*;
use bevyhub::prelude::*;
fn plugin(app: &mut App) {
app.add_plugins((MostDefaultPlugins, beet_example_plugin));
}
fn main() -> Result<()> {
let config = SceneExportConfig {
checks: DynamicSceneChecks {
resource_checks: false,
entity_checks: true,
component_checks: true,
..Default::default()
},
..default()
};
SceneGroupExporter::new(plugin)
.with_config(config.clone())
.add_scene("app", || {})
.add_scene("beet-debug", beet_examples::scenes::flow::beet_debug)
.add_scene("hello-world", beet_examples::scenes::flow::hello_world)
.export()?;
SceneGroupExporter::new(plugin)
.with_config(config.clone())
.without_clear_target()
.add_scene("seek", beet_examples::scenes::spatial::seek)
.add_scene("seek-3d", beet_examples::scenes::spatial::seek_3d)
.add_scene(
"hello-animation",
beet_examples::scenes::spatial::hello_animation,
)
.export()?;
SceneGroupExporter::new((plugin, plugin_ml))
.with_config(config.clone())
.without_clear_target()
.add_scene("app-ml", || {})
.add_scene("hello-ml", beet_examples::scenes::ml::hello_ml)
.add_scene("fetch-scene", beet_examples::scenes::ml::fetch_scene)
.add_scene("fetch-npc", beet_examples::scenes::ml::fetch_npc)
.add_scene(
"frozen-lake-scene",
beet_examples::scenes::ml::frozen_lake_scene,
)
.add_scene(
"frozen-lake-train",
beet_examples::scenes::ml::frozen_lake_train,
)
.add_scene(
"frozen-lake-run",
beet_examples::scenes::ml::frozen_lake_run,
)
.export()?;
TypeRegistryExporter::new(plugin).export()?;
ReplicateRegistryExporter::new(plugin).export()?;
TypeRegistryExporter::new((plugin, plugin_ml))
.with_name("type_registry_ml.json")
.export()?;
ReplicateRegistryExporter::new((plugin, plugin_ml))
.with_name("replication_registry_ml.json")
.export()?;
Ok(())
}