From c06d59ffa09e22a98647f5104944e1c13b161963 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 5 Feb 2025 15:57:15 +0100 Subject: refactor(ecs): replace component::IsOptional enum with bool --- ecs/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ecs/src/lib.rs') diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index 5d9df9a..ae3e191 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -13,7 +13,6 @@ use crate::actions::Action; use crate::component::storage::Storage as ComponentStorage; use crate::component::{ Component, - IsOptional as ComponentIsOptional, Metadata as ComponentMetadata, RefSequence as ComponentRefSequence, Sequence as ComponentSequence, @@ -441,10 +440,7 @@ impl World { let query = self.flexible_query([ ComponentMetadata::of::(), - ComponentMetadata { - id: event_id, - is_optional: ComponentIsOptional::No, - }, + ComponentMetadata { id: event_id, is_optional: false }, ]); for (system,) in query -- cgit v1.2.3-18-g5258