diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-02 14:42:10 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-02 14:42:10 +0200 |
commit | d00ce85c591f7fa8385ef7e99b44db6a14788cd4 (patch) | |
tree | 81c17ccc6b5446ea46ba039cd231cfd01c3f2a91 /ecs/src/system/stateful.rs | |
parent | ff7406e6d8b70884faaff7707c7d917faabe1a53 (diff) |
refactor(ecs): move & rename system::ComponentRef* to component mod
Diffstat (limited to 'ecs/src/system/stateful.rs')
-rw-r--r-- | ecs/src/system/stateful.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs index 80ac346..9d911ee 100644 --- a/ecs/src/system/stateful.rs +++ b/ecs/src/system/stateful.rs @@ -4,10 +4,9 @@ use std::panic::{RefUnwindSafe, UnwindSafe}; use hashbrown::HashMap; use seq_macro::seq; -use crate::component::Component; +use crate::component::{Component, HandleMut as ComponentHandleMut}; use crate::lock::Lock; use crate::system::{ - ComponentRefMut, Into as IntoSystem, Param, ParamWithInputFilter, @@ -110,14 +109,14 @@ macro_rules! impl_system { fn get_local_component_mut<LocalComponent: Component>( &self, - ) -> Option<ComponentRefMut<LocalComponent>> + ) -> Option<ComponentHandleMut<LocalComponent>> { let local_component = self.local_components .get(&LocalComponent::id())? .write_nonblock() .expect("Failed to aquire read-write local component lock"); - Some(ComponentRefMut::new(local_component)) + Some(ComponentHandleMut::new(local_component)) } fn set_local_component<LocalComponent: Component>( |