diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-24 22:16:50 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-25 22:42:35 +0200 |
commit | cbed21f5e6cfb449d49087cedc867c8e50721ba9 (patch) | |
tree | 3850ac5e7907a40e4c4e5627f547bd44c37896ce /ecs/examples/with_sole.rs | |
parent | 8d76fe6be211dfc8fc57d4e2f7e312e757ca899c (diff) |
refactor(ecs): replace Pair ctor functions with builder
Diffstat (limited to 'ecs/examples/with_sole.rs')
-rw-r--r-- | ecs/examples/with_sole.rs | 8 |
1 files changed, 7 insertions, 1 deletions
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<AmmoCounter>) declare_entity!( PRINT_AMMO_COUNT_PHASE, - (Phase, Pair::new::<ChildOf>(*UPDATE_PHASE)) + ( + Phase, + Pair::builder() + .relation::<ChildOf>() + .target_id(*UPDATE_PHASE) + .build() + ) ); fn main() |