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.

Package Functions

void ClearPluginComponents (System.Reflection.Assembly assembly)
 Clears all registered components that belong to a specific assembly.

Properties

static ComponentManager Instance [get]
 Gets the manager instance.

Private Member Functions

 ComponentManager ()

Static Private Member Functions

static ComponentManager ()

Private Attributes

readonly Dictionary< Type, uint > componentRegistry = []

Static Private Attributes

static readonly ComponentManager instance = new ComponentManager()

Constructor & Destructor Documentation

◆ ComponentManager() [1/2]

Nebula.Game.ComponentManager.ComponentManager ( )
inlinestaticprivate

◆ ComponentManager() [2/2]

Nebula.Game.ComponentManager.ComponentManager ( )
inlineprivate

Member Function Documentation

◆ ClearPluginComponents()

void Nebula.Game.ComponentManager.ClearPluginComponents ( System.Reflection.Assembly assembly)
inlinepackage

Clears all registered components that belong to a specific assembly.

◆ 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

readonly Dictionary<Type, uint> Nebula.Game.ComponentManager.componentRegistry = []
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:
  • /github/workspace/code/addons/nsharp/NebulaEngine/engine/Component.cs