Skip to content

Commit 2c82a2f

Browse files
zshiftjarkonik
andauthored
Added initial support for bevy 0.16.0 (#39)
* Added initial support for bevy 0.16.0 * Removed unnecessary bevy feature * update version references --------- Co-authored-by: Jaroslaw Konik <konikjar@gmail.com>
1 parent ec84d9e commit 2c82a2f

20 files changed

+33
-30
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bevy_scriptum"
33
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
4-
version = "0.7.0"
4+
version = "0.8.0"
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
@@ -15,7 +15,7 @@ lua = ["mlua/luajit"]
1515
rhai = ["dep:rhai"]
1616

1717
[dependencies]
18-
bevy = { default-features = false, version = "0.15", features = ["bevy_asset"] }
18+
bevy = { default-features = false, version = "0.16", features = ["bevy_asset", "bevy_log"] }
1919
serde = "1.0.162"
2020
rhai = { version = "1.14.0", features = [
2121
"sync",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ The examples live in `examples` directory and their corresponding scripts live i
189189

190190
| bevy version | bevy_scriptum version |
191191
|--------------|-----------------------|
192+
| 0.16 | 0.8 |
192193
| 0.15 | 0.7 |
193194
| 0.14 | 0.6 |
194195
| 0.13 | 0.4-0.5 |

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ currently being supported with security updates.
77

88
| Version | Supported |
99
| ------- | ------------------ |
10-
| 0.7 | :white_check_mark: |
10+
| 0.8 | :white_check_mark: |
1111

1212
## Reporting a Vulnerability
1313

book/src/bevy_support_matrix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
| bevy version | bevy_scriptum version |
44
| ------------ | --------------------- |
5+
| 0.16 | 0.8 |
56
| 0.15 | 0.7 |
67
| 0.14 | 0.6 |
78
| 0.13 | 0.4-0.5 |

book/src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Add the following to your `Cargo.toml`:
124124

125125
```toml
126126
[dependencies]
127-
bevy_scriptum = { version = "0.7", features = ["lua"] }
127+
bevy_scriptum = { version = "0.8", features = ["lua"] }
128128
```
129129

130130
or execute `cargo add bevy_scriptum --features lua` from your project directory.

book/src/lua/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Add the following to your `Cargo.toml`:
44

55
```toml
66
[dependencies]
7-
bevy = "0.15"
8-
bevy_scriptum = { version = "0.7", features = ["lua"] }
7+
bevy = "0.16"
8+
bevy_scriptum = { version = "0.8", features = ["lua"] }
99
```
1010

1111
If you need a different version of bevy you need to use a matching bevy_scriptum

book/src/rhai/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Add the following to your `Cargo.toml`:
44

55
```toml
66
[dependencies]
7-
bevy = "0.15"
8-
bevy_scriptum = { version = "0.7", features = ["rhai"] }
7+
bevy = "0.16"
8+
bevy_scriptum = { version = "0.8", features = ["rhai"] }
99
```
1010

1111
If you need a different version of bevy you need to use a matching bevy_scriptum

book/src/workflow/live_reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To enable live reload it should be enough to enable `file-watcher` feature
66
within bevy dependency in `Cargo.toml`
77

88
```
9-
bevy = { version = "0.15", features = ["file_watcher"] }
9+
bevy = { version = "0.16", features = ["file_watcher"] }
1010
```
1111

1212
## Init-teardown pattern for game development

examples/lua/call_function_from_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() {
99
.add_systems(Update, call_lua_on_update_from_rust)
1010
.add_scripting::<LuaRuntime>(|runtime| {
1111
runtime.add_function(String::from("quit"), |mut exit: EventWriter<AppExit>| {
12-
exit.send(AppExit::Success);
12+
exit.write(AppExit::Success);
1313
});
1414
})
1515
.run();

examples/lua/promises.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn main() {
1111
.add_scripting::<LuaRuntime>(|builder| {
1212
builder.add_function(
1313
String::from("get_player_name"),
14-
|player_names: Query<&Name, With<Player>>| player_names.single().to_string(),
14+
|player_names: Query<&Name, With<Player>>| player_names.single().expect("Missing player_names").to_string(),
1515
);
1616
})
1717
.add_systems(Startup, startup)

0 commit comments

Comments
 (0)