diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-08 17:19:30 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-08 17:19:30 +0200 |
commit | 7276f9c72f53f02820c3238f72d099221daf7afd (patch) | |
tree | d523d0c01a9cd35bcc44401b46d9c8d36bbb10c1 /ecs/src/lib.rs | |
parent | e4818dd4f0a57a2c9af8859253f570607f64bb12 (diff) |
refactor(ecs): replace optional components with Option query term
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index ee33bd1..2c88eef 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -493,11 +493,6 @@ impl World ) { for (component_id, component) in components { - debug_assert!( - !component.self_is_optional(), - "Adding a optional component to a entity is not supported" - ); - if let Err(err) = component_storage.add_entity_component( entity_uid, (component_id, component.name(), component), |