ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Static Public Member Functions | List of all members
TypeRegistry Class Reference

Detailed Description

Register custom nodes types used to map the node's description in JSON scene files and real classes

Static Public Member Functions

template<typename T >
static shared_ptr< T > makeShared (const string &clazz)
 
template<typename T >
static void registerType (const string &clazz)
 

Member Function Documentation

static shared_ptr<T> makeShared ( const string &  clazz)
nodiscardinlinestatic

Creates a new shared pointer to a new instance of type clazz with casting to the type T

static void registerType ( const string &  clazz)
inlinestatic

Register a new class. Use it when registering from code. If you want to register outside a bloc of code use the Z0_REGISTER_TYPE(class) macro after your class declaration