From cbed21f5e6cfb449d49087cedc867c8e50721ba9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 24 Sep 2025 22:16:50 +0200 Subject: refactor(ecs): replace Pair ctor functions with builder --- ecs/src/component.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ecs/src/component.rs') 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::(self.entity_component_ref.id()), + &Pair::builder() + .relation::() + .target_id(self.entity_component_ref.id()) + .build(), self.entity_component_ref.entity_id(), ); } -- cgit v1.2.3-18-g5258