diff options
Diffstat (limited to 'ecs/examples/event_loop.rs')
-rw-r--r-- | ecs/examples/event_loop.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/examples/event_loop.rs b/ecs/examples/event_loop.rs index f9fd85f..b6a10e3 100644 --- a/ecs/examples/event_loop.rs +++ b/ecs/examples/event_loop.rs @@ -1,5 +1,5 @@ +use ecs::actions::Actions; use ecs::event::{Event, Id as EventId}; -use ecs::flags::Flags; use ecs::{Component, Query, World}; #[derive(Component)] @@ -45,7 +45,7 @@ fn feed(query: Query<(Health, Name)>) } } -fn age(query: Query<(Health, Name)>, mut flags: Flags) +fn age(query: Query<(Health, Name)>, mut actions: Actions) { for (mut health, name) in &query { if health.health <= 2 { @@ -53,7 +53,7 @@ fn age(query: Query<(Health, Name)>, mut flags: Flags) println!("{} passed away", name.name); - flags.stop(); + actions.stop(); continue; } |