Nebula
Loading...
Searching...
No Matches
Nebula.Game.PropertyManager Class Referencesealed

Public Member Functions

void RegisterProperty (Property property)
 Registers a property to the manager.
 
void OnBeginFrame ()
 Calls all eventlistener properties that has subscribed to the OnBeginFrame event.
 
void OnFrame ()
 Calls all eventlistener properties that has subscribed to the OnFrame event.
 
void OnEndFrame ()
 Calls all eventlistener properties that has subscribed to the OnEndFrame event.
 

Properties

static PropertyManager Instance [get]
 Returns the property manager singleton instance.
 

Private Member Functions

 PropertyManager ()
 

Static Private Member Functions

static PropertyManager ()
 

Private Attributes

List< Property >[] eventListeners = new List<Property>[(int)Nebula.Game.FrameEvent.NumEvents]
 

Static Private Attributes

static readonly PropertyManager instance = new PropertyManager()
 

Constructor & Destructor Documentation

◆ PropertyManager() [1/2]

static Nebula.Game.PropertyManager.PropertyManager ( )
inlinestaticprivate

◆ PropertyManager() [2/2]

Nebula.Game.PropertyManager.PropertyManager ( )
inlineprivate

Member Function Documentation

◆ OnBeginFrame()

void Nebula.Game.PropertyManager.OnBeginFrame ( )
inline

Calls all eventlistener properties that has subscribed to the OnBeginFrame event.

◆ OnEndFrame()

void Nebula.Game.PropertyManager.OnEndFrame ( )
inline

Calls all eventlistener properties that has subscribed to the OnEndFrame event.

◆ OnFrame()

void Nebula.Game.PropertyManager.OnFrame ( )
inline

Calls all eventlistener properties that has subscribed to the OnFrame event.

◆ RegisterProperty()

void Nebula.Game.PropertyManager.RegisterProperty ( Property property)
inline

Registers a property to the manager.

Developers usually doesn't need to do this manually - it is subsequently called when adding a property to an entity.

Nebula.Game.Entity.AddProperty(Property)

Member Data Documentation

◆ eventListeners

List<Property> [] Nebula.Game.PropertyManager.eventListeners = new List<Property>[(int)Nebula.Game.FrameEvent.NumEvents]
private

◆ instance

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

Property Documentation

◆ Instance

PropertyManager Nebula.Game.PropertyManager.Instance
staticget

Returns the property manager singleton instance.


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