VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::ComponentType Class Reference

Manages unique type IDs for component types in the ECS system. More...

#include <Registry.hpp>

Static Public Member Functions

static uint32_t get_id_by_name (const char *name)
template<typename T>
static uint32_t get_id ()

Detailed Description

Manages unique type IDs for component types in the ECS system.

Uses a static counter to assign unique identifiers to each component type at compile-time, enabling type-safe component management throughout the registry.

Definition at line 14 of file Registry.hpp.

Member Function Documentation

◆ get_id()

template<typename T>
uint32_t vex::ComponentType::get_id ( )
inlinestatic

Definition at line 19 of file Registry.hpp.

◆ get_id_by_name()

uint32_t vex::ComponentType::get_id_by_name ( const char * name)
static

Definition at line 7 of file Registry.cpp.


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