diff options
| author | HampusM <hampus@hampusmat.com> | 2026-06-06 18:55:07 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-06-06 19:22:04 +0200 |
| commit | 7fe8e9ea15fac647fe8655ee096a9aa5703a97c6 (patch) | |
| tree | d67f60d3275580d3963409bdc34afe8bc811453d /engine-ecs/src/query.rs | |
| parent | e5d67bf7e36671d290b19064f58bc11616c05b8b (diff) | |
feat(engine-ecs): remove Uid kinds
Diffstat (limited to 'engine-ecs/src/query.rs')
| -rw-r--r-- | engine-ecs/src/query.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine-ecs/src/query.rs b/engine-ecs/src/query.rs index 5f13579..ad5f4dd 100644 --- a/engine-ecs/src/query.rs +++ b/engine-ecs/src/query.rs @@ -11,7 +11,7 @@ use crate::component::{ use crate::entity::Handle as EntityHandle; use crate::query::flexible::{Iter as FlexibleQueryIter, Query as FlexibleQuery}; use crate::system::{Metadata as SystemMetadata, Param as SystemParam}; -use crate::uid::{Kind as UidKind, Uid, With as WithUid}; +use crate::uid::{Uid, With as WithUid}; use crate::util::array_vec::ArrayVec; use crate::util::Array; use crate::World; @@ -353,7 +353,7 @@ impl<ComponentT: Component> TermWithField for &ComponentT _world: &'world World, ) -> Self::Field<'world> { - assert_eq!(ComponentT::id().kind(), UidKind::Component); + assert!(!ComponentT::id().is_pair()); let Some(component) = entity_handle .get_matching_components(ComponentT::id()) @@ -394,7 +394,7 @@ impl<ComponentT: Component> TermWithField for &mut ComponentT world: &'world World, ) -> Self::Field<'world> { - assert_eq!(ComponentT::id().kind(), UidKind::Component); + assert!(!ComponentT::id().is_pair()); let Some(component) = entity_handle .get_matching_components(ComponentT::id()) |
