diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-30 19:42:04 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-30 19:42:04 +0100 |
| commit | 607de6051f62652ac2799ec73ef0052436be5d62 (patch) | |
| tree | 569d02e57737d7935ee9eb1bf8948ec4c9e78bae /engine-ecs/src/component.rs | |
| parent | a56f150842bacb376f5b144fc965ae7fec6b1ddc (diff) | |
refactor(engine-ecs): remove field ty_id from component::Info
Diffstat (limited to 'engine-ecs/src/component.rs')
| -rw-r--r-- | engine-ecs/src/component.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engine-ecs/src/component.rs b/engine-ecs/src/component.rs index f27718d..a548518 100644 --- a/engine-ecs/src/component.rs +++ b/engine-ecs/src/component.rs @@ -1,4 +1,4 @@ -use std::any::{Any, TypeId}; +use std::any::Any; use std::borrow::Cow; use std::fmt::Debug; use std::ops::{Deref, DerefMut}; @@ -284,8 +284,6 @@ impl Parts pub fn from_component_info(component_info: &Info, id: Uid, data: Box<dyn Any>) -> Self { - assert_eq!((*data).type_id(), component_info.ty_id); - Self::builder() .type_reflection(component_info.type_reflection) .name(component_info.name.clone()) @@ -419,7 +417,6 @@ impl Default for PartsBuilder pub struct Info { pub type_reflection: Option<&'static TypeReflection>, - pub ty_id: TypeId, pub name: Cow<'static, str>, pub type_name: &'static str, pub is_sole: bool, |
