Skip to content

Commit

Permalink
examples: use minimal plugins (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
stargazing-dino authored Feb 19, 2024
1 parent acaadd9 commit 48b3ea4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
7 changes: 4 additions & 3 deletions examples/concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ pub fn init_entities(mut cmd: Commands) {
fn main() {
// Once all that's done, we just add our systems and off we go!
App::new()
.add_plugins(DefaultPlugins.set(LogPlugin {
// Use `RUST_LOG=big_brain=trace,thirst=trace cargo run --example thirst --features=trace` to see extra tracing output.
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin {
// Use `RUST_LOG=big_brain=trace,concurrent=trace cargo run --example concurrent --features=trace` to see extra tracing output.
filter: "big_brain=warn,concurrent=debug".to_string(),
..default()
}))
})
.add_plugins(BigBrainPlugin::new(PreUpdate))
.add_systems(Startup, init_entities)
.add_systems(
Expand Down
5 changes: 3 additions & 2 deletions examples/custom_measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,13 @@ pub fn init_entities(mut cmd: Commands) {
fn main() {
// Once all that's done, we just add our systems and off we go!
App::new()
.add_plugins(DefaultPlugins.set(LogPlugin {
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin {
// Use `RUST_LOG=big_brain=trace,custom_measure=trace cargo run --example
// custom_measure --features=trace` to see extra tracing output.
filter: "big_brain=debug,custom_measure=debug".to_string(),
..default()
}))
})
.add_plugins(BigBrainPlugin::new(PreUpdate))
.add_systems(Startup, init_entities)
.add_systems(Update, eat_dessert)
Expand Down
7 changes: 4 additions & 3 deletions examples/one_off.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ pub fn thirst_system(
fn main() {
// Once all that's done, we just add our systems and off we go!
App::new()
.add_plugins(DefaultPlugins.set(LogPlugin {
// Use `RUST_LOG=big_brain=trace,thirst=trace cargo run --example
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin {
// Use `RUST_LOG=big_brain=trace,one_off=trace cargo run --example
// one_off --features=trace` to see extra tracing output.
filter: "big_brain=debug,one_off=debug".to_string(),
..default()
}))
})
.add_plugins(BigBrainPlugin::new(PreUpdate))
.add_systems(Startup, init_entities)
.add_systems(Update, thirst_system)
Expand Down
7 changes: 4 additions & 3 deletions examples/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,12 @@ pub fn init_entities(mut cmd: Commands) {
fn main() {
// Once all that's done, we just add our systems and off we go!
App::new()
.add_plugins(DefaultPlugins.set(LogPlugin {
// Use `RUST_LOG=big_brain=trace,thirst=trace cargo run --example thirst --features=trace` to see extra tracing output.
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin {
// Use `RUST_LOG=big_brain=trace,sequence=trace cargo run --example sequence --features=trace` to see extra tracing output.
filter: "big_brain=debug,sequence=debug".to_string(),
..default()
}))
})
.add_plugins(BigBrainPlugin::new(PreUpdate))
.add_systems(Startup, init_entities)
.add_systems(Update, thirst_system)
Expand Down
5 changes: 3 additions & 2 deletions examples/thirst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ pub fn init_entities(mut cmd: Commands) {
fn main() {
// Once all that's done, we just add our systems and off we go!
App::new()
.add_plugins(DefaultPlugins.set(LogPlugin {
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin {
// Use `RUST_LOG=big_brain=trace,thirst=trace cargo run --example
// thirst --features=trace` to see extra tracing output.
filter: "big_brain=debug,thirst=debug".to_string(),
..default()
}))
})
.add_plugins(BigBrainPlugin::new(PreUpdate))
.add_systems(Startup, init_entities)
.add_systems(Update, thirst_system)
Expand Down

0 comments on commit 48b3ea4

Please sign in to comment.