SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::ComponentFactory Struct Reference

#include <ComponentFactory.hpp>

Public Types

using PoolNodeCreatorFn = ComponentPoolNode(*)(Arena *arena)
 

Static Public Member Functions

static void register_component (U32 component_id, PoolNodeCreatorFn creator)
 
static ComponentPoolNode create (U32 component_id, Arena *arena)
 
static bool is_registered (U32 component_id)
 
static void clear ()
 
static void register_default_pools ()
 

Static Public Attributes

static std::vector< PoolNodeCreatorFnm_creators
 

Member Typedef Documentation

◆ PoolNodeCreatorFn

Member Function Documentation

◆ clear()

void sd::ComponentFactory::clear ( )
static

◆ create()

ComponentPoolNode sd::ComponentFactory::create ( U32  component_id,
Arena arena 
)
static

◆ is_registered()

bool sd::ComponentFactory::is_registered ( U32  component_id)
static

◆ register_component()

void sd::ComponentFactory::register_component ( U32  component_id,
PoolNodeCreatorFn  creator 
)
static

◆ register_default_pools()

void sd::ComponentFactory::register_default_pools ( )
static

Member Data Documentation

◆ m_creators

std::vector<PoolNodeCreatorFn> sd::ComponentFactory::m_creators
inlinestatic

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