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/options.rs | |
parent | 17f63d9859e1c82a30c07bf110cf2b9872e2427e (diff) |
refactor(ecs): use same ID for entities & components
Diffstat (limited to 'ecs/src/query/options.rs')
-rw-r--r-- | ecs/src/query/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/query/options.rs b/ecs/src/query/options.rs index d895073..bbbe0a8 100644 --- a/ecs/src/query/options.rs +++ b/ecs/src/query/options.rs @@ -1,7 +1,7 @@ use std::collections::HashSet; use std::marker::PhantomData; -use crate::component::{Component, Id as ComponentId}; +use crate::component::Component; use crate::EntityComponent; /// Query options. @@ -42,7 +42,7 @@ where .map(|component| component.id) .collect::<HashSet<_>>(); - ids_set.contains(&ComponentId::of::<ComponentT>()) + ids_set.contains(&ComponentT::id()) } } |