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/component/local.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/component/local.rs') diff --git a/ecs/src/component/local.rs b/ecs/src/component/local.rs index 89c3139..a365efe 100644 --- a/ecs/src/component/local.rs +++ b/ecs/src/component/local.rs @@ -3,7 +3,7 @@ use std::ops::{Deref, DerefMut}; use crate::component::{Component, Id}; use crate::system::{ComponentRefMut, Param as SystemParam, System}; -use crate::WorldData; +use crate::World; /// Holds a component which is local to a single system. #[derive(Debug)] @@ -29,7 +29,7 @@ where fn new( system: &'world impl System<'world, SystemImpl>, - _world_data: &'world WorldData, + _world: &'world World, ) -> Self { let local_component = system -- cgit v1.2.3-18-g5258