summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-24 22:16:50 +0200
committerHampusM <hampus@hampusmat.com>2025-09-25 22:42:35 +0200
commitcbed21f5e6cfb449d49087cedc867c8e50721ba9 (patch)
tree3850ac5e7907a40e4c4e5627f547bd44c37896ce /ecs/src/component.rs
parent8d76fe6be211dfc8fc57d4e2f7e312e757ca899c (diff)
refactor(ecs): replace Pair ctor functions with builder
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs
index e4ecfce..17b279b 100644
--- a/ecs/src/component.rs
+++ b/ecs/src/component.rs
@@ -153,7 +153,10 @@ impl<'comp, DataT: 'static> HandleMut<'comp, DataT>
pub fn set_changed(&self)
{
self.event_submitter.submit_event(
- &Pair::new::<Changed>(self.entity_component_ref.id()),
+ &Pair::builder()
+ .relation::<Changed>()
+ .target_id(self.entity_component_ref.id())
+ .build(),
self.entity_component_ref.entity_id(),
);
}