summaryrefslogtreecommitdiff
path: root/ecs/src/component/local.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/component/local.rs
parent4793e4411d98d97f879023dc072f3847201d49da (diff)
refactor(ecs): pass World ref to system run & param new functions
Diffstat (limited to 'ecs/src/component/local.rs')
-rw-r--r--ecs/src/component/local.rs4
1 files changed, 2 insertions, 2 deletions
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<SystemImpl>(
system: &'world impl System<'world, SystemImpl>,
- _world_data: &'world WorldData,
+ _world: &'world World,
) -> Self
{
let local_component = system