diff options
Diffstat (limited to 'engine-macros/src')
| -rw-r--r-- | engine-macros/src/reflection/enum_impl.rs | 1 | ||||
| -rw-r--r-- | engine-macros/src/reflection/struct_impl.rs | 1 |
2 files changed, 2 insertions, 0 deletions
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::<Self>(), 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::<Self>(), fields: &[ #(#fields),* ], |
