From daf0bc236df25c0e9f44bc3e30839c16cda3f638 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 11 Nov 2024 00:11:22 +0100 Subject: refactor(ecs): use same ID for entities & components --- ecs/src/query/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/query/options.rs') 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::>(); - ids_set.contains(&ComponentId::of::()) + ids_set.contains(&ComponentT::id()) } } -- cgit v1.2.3-18-g5258