From 7d218b2525f90dfedcae02f3b3d0d2f7b9c99bd2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 16 Aug 2024 20:13:22 +0200 Subject: feat(ecs): make relationships creatable without reference to world --- ecs/examples/relationship.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecs/examples') diff --git a/ecs/examples/relationship.rs b/ecs/examples/relationship.rs index 81f6028..33b7091 100644 --- a/ecs/examples/relationship.rs +++ b/ecs/examples/relationship.rs @@ -41,7 +41,7 @@ fn main() world.create_entity(( Player, Health { health: 180 }, - Relationship::::new(&world, sword_uid), + Relationship::::new(sword_uid), )); world.emit(StartEvent); -- cgit v1.2.3-18-g5258