From 93f9f840da11b82c8a13f31f0ba5db8b10e4e9ad Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 29 Jun 2024 18:41:04 +0200 Subject: refactor(ecs): pass World ref to system run & param new functions --- ecs/src/query.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecs/src/query.rs') 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( _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>() -> bool -- cgit v1.2.3-18-g5258