![]() |
ezEngine Release 25.08
|
A factory that creates the closest matching objects according to the passed type. More...
#include <RttiMappedObjectFactory.h>
Classes | |
struct | Event |
Public Types | |
using | CreateObjectFunc = Object *(*)(const ezRTTI *) |
Public Member Functions | |
void | RegisterCreator (const ezRTTI *pType, CreateObjectFunc creator) |
void | UnregisterCreator (const ezRTTI *pType) |
Object * | CreateObject (const ezRTTI *pType) |
Public Attributes | |
ezEvent< const Event & > | m_Events |
A factory that creates the closest matching objects according to the passed type.
Creators can be registered at the factory for a specific type. When the create function is called for a type, the parent type hierarchy is traversed until the first type is found for which a creator is registered.