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/examples/with_sole.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ecs/examples/with_sole.rs') diff --git a/ecs/examples/with_sole.rs b/ecs/examples/with_sole.rs index a292f06..7e89b0a 100644 --- a/ecs/examples/with_sole.rs +++ b/ecs/examples/with_sole.rs @@ -33,7 +33,13 @@ fn print_total_ammo_count(ammo_counter: Single) declare_entity!( PRINT_AMMO_COUNT_PHASE, - (Phase, Pair::new::(*UPDATE_PHASE)) + ( + Phase, + Pair::builder() + .relation::() + .target_id(*UPDATE_PHASE) + .build() + ) ); fn main() -- cgit v1.2.3-18-g5258