diff options
| author | HampusM <hampus@hampusmat.com> | 2026-07-08 00:43:40 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-07-08 00:43:40 +0200 |
| commit | 378841f5918b28052d938308c52f4591d1ebbf86 (patch) | |
| tree | 92c43099f7b0dd6e22b8994be22ecc1809678705 /engine-ecs/src/component.rs | |
| parent | 548cfe53130537dfee33d143e8a563879e30e1a2 (diff) | |
feat(engine-ecs): add type ID to component::Info struct
Diffstat (limited to 'engine-ecs/src/component.rs')
| -rw-r--r-- | engine-ecs/src/component.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine-ecs/src/component.rs b/engine-ecs/src/component.rs index 25ec101..aee4904 100644 --- a/engine-ecs/src/component.rs +++ b/engine-ecs/src/component.rs @@ -1,4 +1,4 @@ -use std::any::Any; +use std::any::{Any, TypeId}; use std::fmt::Debug; use std::ops::{Deref, DerefMut}; @@ -371,5 +371,6 @@ impl Default for PartsBuilder pub struct Info { pub type_reflection: &'static crate::reflection::Type, + pub ty_id: TypeId, pub name: &'static str, } |
