Skip to content

Commit

Permalink
fix compilation errors in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Sep 7, 2024
1 parent f0fa5c4 commit 6fdbdb8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bevy_mod_scripting_common = { path = "crates/bevy_mod_scripting_common", version
bevy = { workspace = true, default-features = true }
clap = { version = "4.1", features = ["derive"] }
rand = "0.8.5"
# bevy_console = "0.11.1"
bevy_console = "0.12"
rhai-rand = "0.1"

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion examples/lua/bevy_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn main() -> std::io::Result<()> {
.expect("Something went wrong in the script!");
});

world.send_event(AppExit);
world.send_event(AppExit::Success);
},
);

Expand Down
2 changes: 1 addition & 1 deletion examples/lua/game_of_life.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn setup(
settings.display_grid_dimensions.0 as f32,
settings.display_grid_dimensions.1 as f32,
)),
color: Color::TOMATO,
color: Color::srgb(1.0, 0.388, 0.278), // TOMATO
..Default::default()
},
..Default::default()
Expand Down
2 changes: 1 addition & 1 deletion examples/rhai/bevy_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn main() -> std::io::Result<()> {
.expect("Something went wrong in the script!");
});

world.send_event(AppExit);
world.send_event(AppExit::Success);
});

app.run();
Expand Down
2 changes: 1 addition & 1 deletion examples/rhai/game_of_life.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub fn setup(
settings.display_grid_dimensions.0 as f32,
settings.display_grid_dimensions.1 as f32,
)),
color: Color::TOMATO,
color: Color::srgb(1.0, 0.388, 0.278), // TOMATO
..Default::default()
},
..Default::default()
Expand Down
2 changes: 1 addition & 1 deletion examples/rune/event_recipients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ fn main() {
.add_script_handler::<RuneScriptHost<MyRuneArg>, 0, 0>(PostUpdate)
.add_script_host::<RuneScriptHost<MyRuneArg>>(PostUpdate)
.add_api_provider::<RuneScriptHost<MyRuneArg>>(Box::new(RuneAPIProvider))
.run()
.run();
}
2 changes: 1 addition & 1 deletion examples/rune/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() {
.add_script_host::<RuneScriptHost<()>>(PostUpdate)
.add_script_handler::<RuneScriptHost<()>, 0, 1>(PostUpdate)
.add_api_provider::<RuneScriptHost<()>>(Box::new(MyAPIProvider))
.run()
.run();
}

struct MyAPIProvider;
Expand Down
2 changes: 1 addition & 1 deletion examples/wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn main() -> std::io::Result<()> {
.expect("Could not find MyProxiedStruct Resource");
println!("After the script MyProxiedStruct resource is now: {my_thing:#?}");
// exit app
world.send_event(AppExit);
world.send_event(AppExit::Success);
});

app.run();
Expand Down

0 comments on commit 6fdbdb8

Please sign in to comment.