diff options
author | HampusM <hampus@hampusmat.com> | 2025-02-05 15:57:15 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-02-05 15:57:15 +0100 |
commit | c06d59ffa09e22a98647f5104944e1c13b161963 (patch) | |
tree | 66a551242367f95c5e107d4ad0725cc7b33bf221 /ecs/src/lib.rs | |
parent | a735f352f789a440508cf9dd1c554b4d1db6cbb7 (diff) |
refactor(ecs): replace component::IsOptional enum with bool
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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::<SystemComponent>(), - ComponentMetadata { - id: event_id, - is_optional: ComponentIsOptional::No, - }, + ComponentMetadata { id: event_id, is_optional: false }, ]); for (system,) in query |