From 142b97381b3c6fc2e823884f55a05897cc27a9e1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 26 Sep 2025 13:41:24 +0200 Subject: refactor(ecs): make ObserveIter return EventMatch struct --- ecs/examples/component_removed_event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/examples/component_removed_event.rs') diff --git a/ecs/examples/component_removed_event.rs b/ecs/examples/component_removed_event.rs index ffa37f4..e8d1a47 100644 --- a/ecs/examples/component_removed_event.rs +++ b/ecs/examples/component_removed_event.rs @@ -20,8 +20,8 @@ fn eat_cheese(query: Query<(&Cheese,)>, mut actions: Actions) fn on_cheese_removed(observe: Observe>) { - for cheese_ent in &observe { - println!("Cheese entity {} was eaten", cheese_ent.uid()); + for evt_match in &observe { + println!("Cheese entity {} was eaten", evt_match.id()); } } -- cgit v1.2.3-18-g5258