summaryrefslogtreecommitdiff
path: root/ecs/examples/component_removed_event.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-26 13:41:24 +0200
committerHampusM <hampus@hampusmat.com>2025-09-26 13:41:24 +0200
commit142b97381b3c6fc2e823884f55a05897cc27a9e1 (patch)
tree7a35a4bedcd87a475e9a652a759113cb5926fe9a /ecs/examples/component_removed_event.rs
parent0fe88ca6d34aee03e5b84fdf181c1a7cb2bd32af (diff)
refactor(ecs): make ObserveIter return EventMatch struct
Diffstat (limited to 'ecs/examples/component_removed_event.rs')
-rw-r--r--ecs/examples/component_removed_event.rs4
1 files changed, 2 insertions, 2 deletions
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<Pair<Removed, Cheese>>)
{
- 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());
}
}