From dd6bef9a9d04a56b088379468b4156057ca0efe9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 1 Apr 2025 21:18:07 +0200 Subject: refactor(ecs): make component storage more encapsulated --- ecs/src/relationship.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ecs/src/relationship.rs') diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs index a0ccf4d..e5442c2 100644 --- a/ecs/src/relationship.rs +++ b/ecs/src/relationship.rs @@ -179,9 +179,9 @@ where let component = ComponentRefMut::new( entity - .components + .components() .get(component_index)? - .component + .component() .write_nonblock() .unwrap_or_else(|_| { panic!( @@ -434,9 +434,9 @@ where let component = ComponentRef::new( entity - .components + .components() .get(component_index)? - .component + .component() .read_nonblock() .unwrap_or_else(|_| { panic!( -- cgit v1.2.3-18-g5258