Skip to content
Snippets Groups Projects
Verified Commit 25e573cf authored by Louis's avatar Louis :fire:
Browse files

Update required bevy version to 0.11

parent c0d18d99
No related branches found
No related tags found
No related merge requests found
[package]
name = "micro_bevy_world_utils"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
license = "Apache-2.0"
description = "Handy, reusable utilities for working with direct world access in a Bevy exclusive system"
......@@ -11,5 +11,5 @@ repository = "https://lab.lcr.gr/microhacks/micro-bevy-world-utils"
[dependencies]
bevy_ecs = "0.10.1"
bevy_hierarchy = "0.10.1"
bevy_ecs = "0.11.0"
bevy_hierarchy = "0.11.0"
......@@ -35,5 +35,6 @@ the given entities, the result will be `None`
| world_utiles ver | bevy ver |
|------------------|----------|
| 0.3 | 0.11 |
| 0.2 | 0.10 |
| 0.1 | 0.9 |
\ No newline at end of file
......@@ -240,8 +240,8 @@ pub fn get_any_left_parent_any_right_parent_entities<
/// send_event(world, MyEventType { message: 1234 });
/// }
/// ```
pub fn send_event<Event: Sync + Send + 'static>(world: &mut World, event: Event) {
SystemState::<(EventWriter<Event>)>::new(world)
pub fn send_event<Event: bevy_ecs::event::Event + Sync + Send + 'static>(world: &mut World, event: Event) {
SystemState::<EventWriter<Event>>::new(world)
.get_mut(world)
.send(event);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment