From a400a0f378b1c4d911fd21f02d1928271f5930d3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 Nov 2026 16:13:07 +0100 Subject: feat(engine): add type IDs to type reflection data --- engine-macros/src/reflection/enum_impl.rs | 1 + engine-macros/src/reflection/struct_impl.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'engine-macros/src') diff --git a/engine-macros/src/reflection/enum_impl.rs b/engine-macros/src/reflection/enum_impl.rs index 96efd71..34891ac 100644 --- a/engine-macros/src/reflection/enum_impl.rs +++ b/engine-macros/src/reflection/enum_impl.rs @@ -105,6 +105,7 @@ fn generate_impls( #engine_crate_path::reflection::Type::Enum( #engine_crate_path::reflection::Enum { + type_id: std::any::TypeId::of::(), variants: &[#(#variants),*], is_unit_only: #is_unit_only, get_default_value: || { diff --git a/engine-macros/src/reflection/struct_impl.rs b/engine-macros/src/reflection/struct_impl.rs index 27d62ba..234bdd9 100644 --- a/engine-macros/src/reflection/struct_impl.rs +++ b/engine-macros/src/reflection/struct_impl.rs @@ -92,6 +92,7 @@ fn gen_impl( #engine_crate_path::reflection::Type::Struct( #engine_crate_path::reflection::Struct { + type_id: std::any::TypeId::of::(), fields: &[ #(#fields),* ], -- cgit v1.2.3-18-g5258