5 template <
typename T>
requires std::derived_from<T, core::GameObject>
9 SerializationRegistry::registerType<T>(T::classRtti().className());
12 template <
typename T>
requires std::derived_from<T, core::Component>
16 SerializationRegistry::registerType<T>(T::classRtti().className());
void registerType()
Registers a new Component into the registry.
Definition Registries.h:13
void registerType()
Registers a new GameObject into the registry.
Definition Registries.h:6
void registerType(const Key &key)
Registers a type the factory can create.
Definition Factory.h:13