summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-29 18:41:04 +0200
committerHampusM <hampus@hampusmat.com>2024-06-29 18:41:04 +0200
commit93f9f840da11b82c8a13f31f0ba5db8b10e4e9ad (patch)
treef92798d7c1efcaa1b4e8d44215c7e3459f349498 /ecs/src/query.rs
parent4793e4411d98d97f879023dc072f3847201d49da (diff)
refactor(ecs): pass World ref to system run & param new functions
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r--ecs/src/query.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs
index 8a63256..79ad292 100644
--- a/ecs/src/query.rs
+++ b/ecs/src/query.rs
@@ -21,7 +21,7 @@ use crate::system::{
Param as SystemParam,
System,
};
-use crate::{EntityComponent, WorldData};
+use crate::{EntityComponent, World, WorldData};
pub mod options;
@@ -115,10 +115,10 @@ where
fn new<SystemImpl>(
_system: &'world impl System<'world, SystemImpl>,
- world_data: &'world WorldData,
+ world: &'world World,
) -> Self
{
- Self::new(&world_data.component_storage)
+ Self::new(&world.data.component_storage)
}
fn is_compatible<Other: SystemParam<'world>>() -> bool