Skip to content

Commit

Permalink
Support bevy 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
jarkonik committed Apr 10, 2024
1 parent 407da8d commit 7846b55
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bevy_scriptum"
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -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

[dependencies]
bevy = { default-features = false, version = "0.12.0", features = [
bevy = { default-features = false, version = "0.13.0", features = [
"bevy_asset",
] }
serde = "1.0.162"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ The examples live in `examples` directory and their corresponding scripts live i

| bevy version | bevy_scriptum version |
|--------------|----------------------|
| 0.13 | 0.4 |
| 0.12 | 0.3 |
| 0.11 | 0.2 |
| 0.10 | 0.1 |
Expand Down
5 changes: 2 additions & 3 deletions src/assets.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use bevy::{
asset::{io::Reader, Asset, AssetLoader, AsyncReadExt as _, LoadContext},
reflect::{TypePath, TypeUuid},
reflect::TypePath,
utils::BoxedFuture,
};
use serde::Deserialize;

/// A script that can be loaded by the [crate::ScriptingPlugin].
#[derive(Asset, Debug, Deserialize, TypeUuid, TypePath)]
#[uuid = "3ed4b68b-4f5d-4d82-96f6-5194e358921a"]
#[derive(Asset, Debug, Deserialize, TypePath)]
pub struct RhaiScript(pub String);

/// A loader for [RhaiScript] assets.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
//!
//! | bevy version | bevy_scriptum version |
//! |--------------|----------------------|
//! | 0.13 | 0.4 |
//! | 0.12 | 0.3 |
//! | 0.11 | 0.2 |
//! | 0.10 | 0.1 |
Expand Down

0 comments on commit 7846b55

Please sign in to comment.