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

Classes

class  Template
 

Public Member Functions

void SetupTemplates (string path)
 Read all templates from path, and its subfolders, and load them.
 
void RegisterPropertyType< T > ()
 

Properties

static TemplateManager Instance [get]
 Returns the template manager singleton instance.
 

Private Member Functions

delegate Property DeserializeProperty (string json)
 
 TemplateManager ()
 

Static Private Member Functions

static TemplateManager ()
 

Private Attributes

Dictionary< string, DeserializePropertydeserializeFuncs = new Dictionary<string, DeserializeProperty>()
 
Dictionary< string, Templatetemplates = new Dictionary<string, Template>()
 

Static Private Attributes

static readonly TemplateManager instance = new TemplateManager()
 

Constructor & Destructor Documentation

◆ TemplateManager() [1/2]

static Nebula.Game.TemplateManager.TemplateManager ( )
inlinestaticprivate

◆ TemplateManager() [2/2]

Nebula.Game.TemplateManager.TemplateManager ( )
inlineprivate

Member Function Documentation

◆ DeserializeProperty()

delegate Property Nebula.Game.TemplateManager.DeserializeProperty ( string json)
private

◆ RegisterPropertyType< T >()

void Nebula.Game.TemplateManager.RegisterPropertyType< T > ( )
inline
Type Constraints
T :Property 

◆ SetupTemplates()

void Nebula.Game.TemplateManager.SetupTemplates ( string path)
inline

Read all templates from path, and its subfolders, and load them.

Parameters
path

Member Data Documentation

◆ deserializeFuncs

Dictionary<string, DeserializeProperty> Nebula.Game.TemplateManager.deserializeFuncs = new Dictionary<string, DeserializeProperty>()
private

◆ instance

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

◆ templates

Dictionary<string, Template> Nebula.Game.TemplateManager.templates = new Dictionary<string, Template>()
private

Property Documentation

◆ Instance

TemplateManager Nebula.Game.TemplateManager.Instance
staticget

Returns the template manager singleton instance.


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