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/relationship.rs | |
parent | 8d76fe6be211dfc8fc57d4e2f7e312e757ca899c (diff) |
refactor(ecs): replace Pair ctor functions with builder
Diffstat (limited to 'ecs/examples/relationship.rs')
-rw-r--r-- | ecs/examples/relationship.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ecs/examples/relationship.rs b/ecs/examples/relationship.rs index dd2f77a..4e94151 100644 --- a/ecs/examples/relationship.rs +++ b/ecs/examples/relationship.rs @@ -46,7 +46,10 @@ fn main() world.create_entity(( Player, Health { health: 180 }, - Pair::new::<Holding>(sword_uid), + Pair::builder() + .relation::<Holding>() + .target_id(sword_uid) + .build(), )); world.step(); |