Jungle_Week1_Team2
Loading...
Searching...
No Matches
ObjectFactory Class Reference

#include <ObjectFactory.h>

Public Types

using CreateFunc = std::function<std::shared_ptr<UObject>(uint32, size_t)>

Static Public Member Functions

static auto & Registry ()
template<typename TObject>
static void RegisterType (size_t typeId)
static std::shared_ptr< UObjectCreateObject (uint32 uuid, size_t typeId)
static uint32 GenerateUUID ()

Member Typedef Documentation

◆ CreateFunc

using ObjectFactory::CreateFunc = std::function<std::shared_ptr<UObject>(uint32, size_t)>

Member Function Documentation

◆ CreateObject()

std::shared_ptr< UObject > ObjectFactory::CreateObject ( uint32 uuid,
size_t typeId )
inlinestatic

◆ GenerateUUID()

uint32 ObjectFactory::GenerateUUID ( )
inlinestatic

◆ RegisterType()

template<typename TObject>
void ObjectFactory::RegisterType ( size_t typeId)
inlinestatic

◆ Registry()

auto & ObjectFactory::Registry ( )
inlinestatic

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