Go to the source code of this file.
|
#define | REFLECT_INSPECTOR_INLINE(inspector_type, inspected_type) |
| Macro to register an inspector inline with its inspected type.
|
|
#define | REFLECT_INSPECTOR(inspector_type, inspected_type) |
| Macro to register an inspector with its inspected type.
|
|
◆ REFLECT_INSPECTOR
#define REFLECT_INSPECTOR |
( |
| inspector_type, |
|
|
| inspected_type ) |
Value:
{ \
entt::meta_factory<inspector_type>{} \
.type(entt::hashed_string{#inspector_type}) \
.custom<entt::attributes>( \
.base<inspector>() \
.func<&inspector::create_and_register<inspector_type>>("create_and_register"_hs); \
}
attributes::value_type attribute
std::map< std::string, meta_any > attributes
Macro to register an inspector with its inspected type.
- Parameters
-
inspector_type | The inspector class to register |
inspected_type | The type this inspector handles |
Definition at line 326 of file inspector.h.
◆ REFLECT_INSPECTOR_INLINE
#define REFLECT_INSPECTOR_INLINE |
( |
| inspector_type, |
|
|
| inspected_type ) |
Value:
{ \
entt::meta_factory<inspector_type>{} \
.type(entt::hashed_string{#inspector_type}) \
.custom<entt::attributes>( \
.base<inspector>() \
.func<&inspector::create_and_register<inspector_type>>("create_and_register"_hs); \
}
#define REFLECT_INLINE(cls)
Macro to register an inspector inline with its inspected type.
- Parameters
-
inspector_type | The inspector class to registerb |
inspected_type | The type this inspector handles |
Definition at line 310 of file inspector.h.