![]() |
Plasma Engine
2.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 > | |
plWorldModuleTypeId | RegisterWorldModule () |
plWorldModuleTypeId | GetTypeId (const plRTTI *pRtti) |
Returns the module type id to the given rtti module/component type. | |
plWorldModule * | CreateWorldModule (plUInt16 uiTypeId, plWorld *pWorld) |
Creates a new instance of the world module with the given type id and world. | |
void | RegisterInterfaceImplementation (plStringView sInterfaceName, plStringView sImplementationName) |
Register explicit a mapping of a world module interface to a specific implementation. | |
Static Public Member Functions | |
static plWorldModuleFactory * | GetInstance () |
Helper class to get component type ids and create new instances of world modules from rtti.
void plWorldModuleFactory::RegisterInterfaceImplementation | ( | plStringView | sInterfaceName, |
plStringView | 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.