Plasma Engine  2.0
Loading...
Searching...
No Matches
WorldModule_inl.h
1
3{
4 return m_pWorld;
5}
6
7PL_ALWAYS_INLINE const plWorld* plWorldModule::GetWorld() const
8{
9 return m_pWorld;
10}
11
13
14template <typename ModuleType, typename RTTIType>
15plWorldModuleTypeId plWorldModuleFactory::RegisterWorldModule()
16{
17 struct Helper
18 {
19 static plWorldModule* Create(plAllocator* pAllocator, plWorld* pWorld) { return PL_NEW(pAllocator, ModuleType, pWorld); }
20 };
21
22 const plRTTI* pRtti = plGetStaticRTTI<RTTIType>();
23 return RegisterWorldModule(pRtti, &Helper::Create);
24}
Base class for all memory allocators.
Definition Allocator.h:23
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
Definition WorldModule.h:10
plWorld * GetWorld()
Returns the corresponding world to this module.
Definition WorldModule_inl.h:2