Loading...
Searching...
No Matches
PixelCrushers.GlobalTextTable Class Reference

Maintains a reference to a global TextTable that other scripts can use. More...

Inheritance diagram for PixelCrushers.GlobalTextTable:
Collaboration diagram for PixelCrushers.GlobalTextTable:

Static Public Member Functions

static string Lookup (StringField fieldName)
 Looks up a field value in the global text table.
 
static string Lookup (string fieldName)
 Looks up a field value in the global text table.
 

Protected Member Functions

virtual void Awake ()
 
virtual void OnDestroy ()
 

Static Protected Attributes

static GlobalTextTable s_instance = null
 

Properties

static GlobalTextTable instance [get]
 Current instance of GlobalTextTable.
 
static TextTable textTable [get, set]
 Current global text table.
 
static string currentLanguage [get, set]
 The current language to use.
 

Detailed Description

Maintains a reference to a global TextTable that other scripts can use.

Member Function Documentation

◆ Awake()

virtual void PixelCrushers.GlobalTextTable.Awake ( )
inlineprotectedvirtual

◆ Lookup() [1/2]

static string PixelCrushers.GlobalTextTable.Lookup ( string  fieldName)
inlinestatic

Looks up a field value in the global text table.

Parameters
fieldNameField name.
Returns
The field value in the global text table for the current language.

◆ Lookup() [2/2]

static string PixelCrushers.GlobalTextTable.Lookup ( StringField  fieldName)
inlinestatic

Looks up a field value in the global text table.

Parameters
fieldNameField name.
Returns
The field value in the global text table for the current language.

◆ OnDestroy()

virtual void PixelCrushers.GlobalTextTable.OnDestroy ( )
inlineprotectedvirtual

Member Data Documentation

◆ s_instance

GlobalTextTable PixelCrushers.GlobalTextTable.s_instance = null
staticprotected

Property Documentation

◆ currentLanguage

string PixelCrushers.GlobalTextTable.currentLanguage
staticgetset

The current language to use.

◆ instance

GlobalTextTable PixelCrushers.GlobalTextTable.instance
staticget

Current instance of GlobalTextTable.

◆ textTable

TextTable PixelCrushers.GlobalTextTable.textTable
staticgetset

Current global text table.


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