Support bevy 0.13
This commit is contained in:
parent
407da8d608
commit
7846b556ca
4 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bevy_scriptum"
|
name = "bevy_scriptum"
|
||||||
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
|
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
@ -13,7 +13,7 @@ keywords = ["bevy", "rhai", "scripting", "game", "gamedev"]
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { default-features = false, version = "0.12.0", features = [
|
bevy = { default-features = false, version = "0.13.0", features = [
|
||||||
"bevy_asset",
|
"bevy_asset",
|
||||||
] }
|
] }
|
||||||
serde = "1.0.162"
|
serde = "1.0.162"
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ The examples live in `examples` directory and their corresponding scripts live i
|
||||||
|
|
||||||
| bevy version | bevy_scriptum version |
|
| bevy version | bevy_scriptum version |
|
||||||
|--------------|----------------------|
|
|--------------|----------------------|
|
||||||
|
| 0.13 | 0.4 |
|
||||||
| 0.12 | 0.3 |
|
| 0.12 | 0.3 |
|
||||||
| 0.11 | 0.2 |
|
| 0.11 | 0.2 |
|
||||||
| 0.10 | 0.1 |
|
| 0.10 | 0.1 |
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
use bevy::{
|
use bevy::{
|
||||||
asset::{io::Reader, Asset, AssetLoader, AsyncReadExt as _, LoadContext},
|
asset::{io::Reader, Asset, AssetLoader, AsyncReadExt as _, LoadContext},
|
||||||
reflect::{TypePath, TypeUuid},
|
reflect::TypePath,
|
||||||
utils::BoxedFuture,
|
utils::BoxedFuture,
|
||||||
};
|
};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
/// A script that can be loaded by the [crate::ScriptingPlugin].
|
/// A script that can be loaded by the [crate::ScriptingPlugin].
|
||||||
#[derive(Asset, Debug, Deserialize, TypeUuid, TypePath)]
|
#[derive(Asset, Debug, Deserialize, TypePath)]
|
||||||
#[uuid = "3ed4b68b-4f5d-4d82-96f6-5194e358921a"]
|
|
||||||
pub struct RhaiScript(pub String);
|
pub struct RhaiScript(pub String);
|
||||||
|
|
||||||
/// A loader for [RhaiScript] assets.
|
/// A loader for [RhaiScript] assets.
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@
|
||||||
//!
|
//!
|
||||||
//! | bevy version | bevy_scriptum version |
|
//! | bevy version | bevy_scriptum version |
|
||||||
//! |--------------|----------------------|
|
//! |--------------|----------------------|
|
||||||
|
//! | 0.13 | 0.4 |
|
||||||
//! | 0.12 | 0.3 |
|
//! | 0.12 | 0.3 |
|
||||||
//! | 0.11 | 0.2 |
|
//! | 0.11 | 0.2 |
|
||||||
//! | 0.10 | 0.1 |
|
//! | 0.10 | 0.1 |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue