XII Release 0.1.0
Loading...
Searching...
No Matches
xiiWorldModuleFactory Class Reference

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.
 
xiiWorldModuleCreateWorldModule (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 xiiWorldModuleFactoryGetInstance ()
 

Detailed Description

Helper class to get component type ids and create new instances of world modules from rtti.

Member Function Documentation

◆ RegisterInterfaceImplementation()

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.


The documentation for this class was generated from the following files: