Skip to content

Commit

Permalink
fix(derive): using prelude rather than ecs::xyz in derive (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalosak committed May 17, 2024
1 parent 98337fa commit 128f55e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ homepage = "https://github.com/zkat/big-brain"
[workspace]

[dependencies]
bevy = { version = "0.13.0", default-features = false }
bevy = { version = "0.13.2", default-features = false }
big-brain-derive = { version = "=0.19.0", path = "./derive" }

[dev-dependencies]
bevy = { version = "0.13.0", default-features = true }
bevy = { version = "0.13.2", default-features = true }
rand = { version = "0.8.5", features = ["small_rng"] }
bevy-scene-hook = "10.0.0"

Expand Down
2 changes: 1 addition & 1 deletion derive/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn build_method(component_name: &Ident, ty_generics: &syn::TypeGenerics) -> Toke
let turbofish = ty_generics.as_turbofish();

quote! {
fn build(&self, cmd: &mut ::bevy::ecs::system::Commands, action: ::bevy::ecs::entity::Entity, _actor: ::bevy::ecs::entity::Entity) {
fn build(&self, cmd: &mut ::bevy::prelude::Commands, action: ::bevy::prelude::Entity, _actor: ::bevy::prelude::Entity) {
cmd.entity(action).insert(#component_name #turbofish::clone(self));
}
}
Expand Down
2 changes: 1 addition & 1 deletion derive/src/scorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn build_method(component_name: &Ident, ty_generics: &syn::TypeGenerics) -> Toke
let turbofish = ty_generics.as_turbofish();

quote! {
fn build(&self, cmd: &mut ::bevy::ecs::system::Commands, scorer: ::bevy::ecs::entity::Entity, _actor: ::bevy::ecs::entity::Entity) {
fn build(&self, cmd: &mut ::bevy::prelude::Commands, scorer: ::bevy::prelude::Entity, _actor: ::bevy::prelude::Entity) {
cmd.entity(scorer).insert(#component_name #turbofish::clone(self));
}
}
Expand Down

0 comments on commit 128f55e

Please sign in to comment.