diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-11 00:11:22 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-11 00:11:22 +0100 |
commit | daf0bc236df25c0e9f44bc3e30839c16cda3f638 (patch) | |
tree | 7475e4e58686dd34366e641ec32f5a9374d66533 /ecs/src/query.rs | |
parent | 17f63d9859e1c82a30c07bf110cf2b9872e2427e (diff) |
refactor(ecs): use same ID for entities & components
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r-- | ecs/src/query.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs index e7fd7a6..69bb35d 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -15,7 +15,6 @@ use crate::component::{ Metadata as ComponentMetadata, Sequence as ComponentSequence, }; -use crate::entity::Uid as EntityUid; use crate::lock::{ReadGuard, WriteGuard}; use crate::query::options::Options; use crate::system::{ @@ -23,6 +22,7 @@ use crate::system::{ Param as SystemParam, System, }; +use crate::uid::Uid; use crate::{EntityComponent, World}; pub mod options; @@ -86,7 +86,7 @@ where /// Returns the UID of the entity at the given query iteration index. #[must_use] - pub fn entity_uid(&self, entity_index: usize) -> Option<EntityUid> + pub fn get_entity_uid(&self, entity_index: usize) -> Option<Uid> { Some( self.component_storage |