summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-03-06 00:23:07 +0100
committerHampusM <hampus@hampusmat.com>2024-03-06 00:23:07 +0100
commitdba19db5f649f73a5abb1bc3589580721a9a4e32 (patch)
tree7fe133d807a834919c983ce1e6535b920a46b4bb /ecs/src/component.rs
parente246f90bc33fd489e300366e30354e34a05b8107 (diff)
refactor(ecs): pass around all world data and not component storage
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs4
1 files changed, 2 insertions, 2 deletions
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<SystemImpl>(
system: &'world mut impl System<SystemImpl>,
- _component_storage: &'world mut ComponentStorage,
+ _world_data: &'world mut WorldData,
) -> Self
{
let local_component = system