Skip to content

Commit 6fdbdb8

Browse files
committed
fix compilation errors in examples
1 parent f0fa5c4 commit 6fdbdb8

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ bevy_mod_scripting_common = { path = "crates/bevy_mod_scripting_common", version
7878
bevy = { workspace = true, default-features = true }
7979
clap = { version = "4.1", features = ["derive"] }
8080
rand = "0.8.5"
81-
# bevy_console = "0.11.1"
81+
bevy_console = "0.12"
8282
rhai-rand = "0.1"
8383

8484
[workspace]

examples/lua/bevy_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fn main() -> std::io::Result<()> {
197197
.expect("Something went wrong in the script!");
198198
});
199199

200-
world.send_event(AppExit);
200+
world.send_event(AppExit::Success);
201201
},
202202
);
203203

examples/lua/game_of_life.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn setup(
9595
settings.display_grid_dimensions.0 as f32,
9696
settings.display_grid_dimensions.1 as f32,
9797
)),
98-
color: Color::TOMATO,
98+
color: Color::srgb(1.0, 0.388, 0.278), // TOMATO
9999
..Default::default()
100100
},
101101
..Default::default()

examples/rhai/bevy_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fn main() -> std::io::Result<()> {
171171
.expect("Something went wrong in the script!");
172172
});
173173

174-
world.send_event(AppExit);
174+
world.send_event(AppExit::Success);
175175
});
176176

177177
app.run();

examples/rhai/game_of_life.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub fn setup(
100100
settings.display_grid_dimensions.0 as f32,
101101
settings.display_grid_dimensions.1 as f32,
102102
)),
103-
color: Color::TOMATO,
103+
color: Color::srgb(1.0, 0.388, 0.278), // TOMATO
104104
..Default::default()
105105
},
106106
..Default::default()

examples/rune/event_recipients.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ fn main() {
115115
.add_script_handler::<RuneScriptHost<MyRuneArg>, 0, 0>(PostUpdate)
116116
.add_script_host::<RuneScriptHost<MyRuneArg>>(PostUpdate)
117117
.add_api_provider::<RuneScriptHost<MyRuneArg>>(Box::new(RuneAPIProvider))
118-
.run()
118+
.run();
119119
}

examples/rune/minimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
.add_script_host::<RuneScriptHost<()>>(PostUpdate)
1111
.add_script_handler::<RuneScriptHost<()>, 0, 1>(PostUpdate)
1212
.add_api_provider::<RuneScriptHost<()>>(Box::new(MyAPIProvider))
13-
.run()
13+
.run();
1414
}
1515

1616
struct MyAPIProvider;

examples/wrappers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn main() -> std::io::Result<()> {
111111
.expect("Could not find MyProxiedStruct Resource");
112112
println!("After the script MyProxiedStruct resource is now: {my_thing:#?}");
113113
// exit app
114-
world.send_event(AppExit);
114+
world.send_event(AppExit::Success);
115115
});
116116

117117
app.run();

0 commit comments

Comments
 (0)