Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Jul 28, 2024
1 parent afa0c17 commit deabdf6
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/beet_examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ default = []
[dependencies]
forky_core.workspace = true
beet_flow.workspace = true
beet_spatial.workspace = true
beet_ml.workspace = true
beetmash.workspace = true
# beet = { workspace = true, features = ["reflect"] }
bevy = { workspace = true, default-features = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/beet_examples/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// #![allow(unused, dead_code)]
pub mod components;
pub mod plugins;
pub mod scenes;

pub mod prelude {
pub use crate::components::*;
pub use crate::plugins::*;
}
}
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/flow/beet_debug.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::prelude::*;
use beet_flow::prelude::*;
use bevy::prelude::*;

pub fn beet_debug(mut commands: Commands) {
Expand Down
3 changes: 2 additions & 1 deletion crates/beet_examples/src/scenes/flow/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::prelude::*;
use beet_flow::prelude::*;
use bevy::prelude::*;


pub fn hello_world(mut commands: Commands) {
commands
.spawn((
Expand Down
1 change: 1 addition & 0 deletions crates/beet_examples/src/scenes/ml/fetch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::prelude::*;
use beet_flow::prelude::*;
use beet_spatial::prelude::*;
use beet_ml::prelude::*;
use beetmash::core::scenes::Foxie;
use beetmash::prelude::*;
use bevy::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/ml/frozen_lake_run.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;
use crate::prelude::*;
use beet_flow::prelude::*;
use beet_ml::prelude::*;
use beetmash::prelude::*;
use bevy::prelude::*;
use std::time::Duration;
Expand Down
3 changes: 2 additions & 1 deletion crates/beet_examples/src/scenes/ml/frozen_lake_scene.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::prelude::*;
use bevy::prelude::*;
use beet_ml::prelude::*;
use beetmash::prelude::*;
use bevy::prelude::*;

pub const FROZEN_LAKE_SCENE_SCALE: f32 = 1.;

Expand Down
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/ml/frozen_lake_train.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::FROZEN_LAKE_SCENE_SCALE;
use crate::prelude::*;
use beet_ml::prelude::*;
use bevy::prelude::*;

pub fn frozen_lake_train(mut commands: Commands) {
Expand Down
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/ml/hello_ml.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::prelude::*;
use beet_ml::prelude::*;
use beet_spatial::prelude::*;
use bevy::prelude::*;

Expand Down
3 changes: 3 additions & 0 deletions crates/beet_examples/src/scenes/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod flow;
pub mod ml;
pub mod spatial;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::prelude::*;
use beet_spatial::prelude::*;
use beet_flow::prelude::*;
use bevy::prelude::*;

Expand Down
1 change: 1 addition & 0 deletions crates/beet_examples/src/scenes/spatial/flock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use crate::prelude::*;
use beet_flow::prelude::*;
use beetmash::prelude::*;
use bevy::prelude::*;
use beet_spatial::prelude::*;

pub fn flock(mut commands: Commands) {
commands.insert_resource(WrapAround::default());
Expand Down
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/spatial/hello_animation.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::prelude::*;
use beet_spatial::prelude::*;
use beet_flow::prelude::*;
use beetmash::core::scenes::Foxie;
use beetmash::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions crates/beet_examples/src/scenes/spatial/seek.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::prelude::*;
use beet_flow::prelude::*;
use beet_spatial::prelude::*;
use beetmash::prelude::*;
use bevy::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/beet_examples/src/scenes/spatial/seek_3d.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::prelude::*;
use beet_examples::prelude::*;
use beet_spatial::prelude::*;
use beet_flow::prelude::*;
use beetmash::core::scenes::Foxie;
use beetmash::prelude::*;
Expand Down
4 changes: 2 additions & 2 deletions examples/build_scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fn main() -> Result<()> {
.with_dir(DIR)
.with_query::<(Without<ObserverState>, Without<Observer<OnLogMessage, ()>>)>(
)
.add_scene("beet-debug", beet::flow::scenes::beet_debug)
.add_scene("hello-world", beet::flow::scenes::hello_world)
.add_scene("beet-debug", beet_examples::scenes::flow::beet_debug)
.add_scene("hello-world", beet_examples::scenes::flow::hello_world)
.build()?;

// BeetmashSceneBuilder::new((
Expand Down
4 changes: 4 additions & 0 deletions scenes/beet-debug.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(
resources: {},
entities: {},
)
26 changes: 26 additions & 0 deletions scenes/hello-world.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(
resources: {},
entities: {
4294967298: (
components: {
"bevy_core::name::Name": "Hello World Sequence",
"bevy_hierarchy::components::children::Children": ([
4294967299,
4294967300,
]),
},
),
4294967299: (
components: {
"bevy_core::name::Name": "Hello",
"bevy_hierarchy::components::parent::Parent": (4294967298),
},
),
4294967300: (
components: {
"bevy_core::name::Name": "World",
"bevy_hierarchy::components::parent::Parent": (4294967298),
},
),
},
)

0 comments on commit deabdf6

Please sign in to comment.