From dba19db5f649f73a5abb1bc3589580721a9a4e32 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 6 Mar 2024 00:23:07 +0100 Subject: refactor(ecs): pass around all world data and not component storage --- ecs/src/component.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/component.rs') diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 023be86..7a997c5 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -5,7 +5,7 @@ use std::ops::{Deref, DerefMut}; use seq_macro::seq; use crate::system::{Input as SystemInput, Param as SystemParam, System}; -use crate::ComponentStorage; +use crate::WorldData; pub trait Component: SystemInput + Any { @@ -167,7 +167,7 @@ where fn new( system: &'world mut impl System, - _component_storage: &'world mut ComponentStorage, + _world_data: &'world mut WorldData, ) -> Self { let local_component = system -- cgit v1.2.3-18-g5258