Nebula
Loading...
Searching...
No Matches
Nebula.Game.ComponentManager Class Reference

Public Member Functions

uint GetComponentId< T > ()
 Retrieve the component id for a given NativeComponent.
 
void RegisterComponent (Type type, uint id)
 Registers a type to an id.
 

Properties

static ComponentManager Instance [get]
 Gets the manager instance.
 

Private Member Functions

 ComponentManager ()
 

Static Private Member Functions

static ComponentManager ()
 

Private Attributes

Dictionary< Type, uintcomponentRegistry = new Dictionary<Type, uint>()
 

Static Private Attributes

static readonly ComponentManager instance = new ComponentManager()
 

Constructor & Destructor Documentation

◆ ComponentManager() [1/2]

static Nebula.Game.ComponentManager.ComponentManager ( )
inlinestaticprivate

◆ ComponentManager() [2/2]

Nebula.Game.ComponentManager.ComponentManager ( )
inlineprivate

Member Function Documentation

◆ GetComponentId< T >()

uint Nebula.Game.ComponentManager.GetComponentId< T > ( )
inline

Retrieve the component id for a given NativeComponent.

Type Constraints
T :NativeComponent 

◆ RegisterComponent()

void Nebula.Game.ComponentManager.RegisterComponent ( Type type,
uint id )
inline

Registers a type to an id.

Member Data Documentation

◆ componentRegistry

Dictionary<Type, uint> Nebula.Game.ComponentManager.componentRegistry = new Dictionary<Type, uint>()
private

◆ instance

readonly ComponentManager Nebula.Game.ComponentManager.instance = new ComponentManager()
staticprivate

Property Documentation

◆ Instance

ComponentManager Nebula.Game.ComponentManager.Instance
staticget

Gets the manager instance.


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