Plasma Engine  2.0
Loading...
Searching...
No Matches
plWorldModuleFactory 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 >
plWorldModuleTypeId RegisterWorldModule ()
 
plWorldModuleTypeId GetTypeId (const plRTTI *pRtti)
 Returns the module type id to the given rtti module/component type.
 
plWorldModuleCreateWorldModule (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 plWorldModuleFactoryGetInstance ()
 

Detailed Description

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

Member Function Documentation

◆ RegisterInterfaceImplementation()

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.


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