![]() |
XII Release 0.1.0
|
Helper class to get component type ids and create new instances of world modules from rtti. More...
#include <WorldModule.h>
Public Member Functions | |
template<typename ModuleType, typename RTTIType> | |
xiiWorldModuleTypeId | RegisterWorldModule () |
xiiWorldModuleTypeId | GetTypeId (const xiiRTTI *pRtti) |
Returns the module type id to the given rtti module/component type. | |
xiiWorldModule * | CreateWorldModule (xiiUInt16 uiTypeId, xiiWorld *pWorld) |
Creates a new instance of the world module with the given type id and world. | |
void | RegisterInterfaceImplementation (xiiStringView sInterfaceName, xiiStringView sImplementationName) |
Register explicit a mapping of a world module interface to a specific implementation. | |
Static Public Member Functions | |
static xiiWorldModuleFactory * | GetInstance () |
Helper class to get component type ids and create new instances of world modules from rtti.
void xiiWorldModuleFactory::RegisterInterfaceImplementation | ( | xiiStringView | sInterfaceName, |
xiiStringView | sImplementationName ) |
Register explicit a mapping of a world module interface to a specific implementation.
This is necessary if there are multiple implementations of the same interface. If there is only one implementation for an interface this implementation is registered automatically.