EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Controller.EasyTalkGameState Class Reference

The EasyTalkGameState is used to keep track of global settings used by the EasyTalk system during runtime. More...

Public Member Functions

delegate void OnLanguageChanged (string oldLanguage, string newLanguage)
 Defines a delegate method to be called when the language is changed.
 

Properties

string Language [get, set]
 Gets or sets the language used by EasyTalk. If set, the onLanguageChanged callback will also be triggered.
 
string SessionID [get, set]
 
static EasyTalkGameState Instance [get]
 Gets the instance of the EasyTalk game state.
 

Events

OnLanguageChanged onLanguageChanged
 The callback which is triggered when the language changes.
 

Private Attributes

string sessionId = Guid.NewGuid().ToString()
 
string language = "en"
 The language currently being used by EasyTalk.
 

Static Private Attributes

static EasyTalkGameState instance
 The active EasyTalkGameState instance.
 

Detailed Description

The EasyTalkGameState is used to keep track of global settings used by the EasyTalk system during runtime.

Member Function Documentation

◆ OnLanguageChanged()

delegate void EasyTalk.Controller.EasyTalkGameState.OnLanguageChanged ( string oldLanguage,
string newLanguage )

Defines a delegate method to be called when the language is changed.

Parameters
oldLanguageThe old language being used.
newLanguageThe new language to use.

Member Data Documentation

◆ instance

EasyTalkGameState EasyTalk.Controller.EasyTalkGameState.instance
staticprivate

The active EasyTalkGameState instance.

◆ language

string EasyTalk.Controller.EasyTalkGameState.language = "en"
private

The language currently being used by EasyTalk.

◆ sessionId

string EasyTalk.Controller.EasyTalkGameState.sessionId = Guid.NewGuid().ToString()
private

Property Documentation

◆ Instance

EasyTalkGameState EasyTalk.Controller.EasyTalkGameState.Instance
staticget

Gets the instance of the EasyTalk game state.

◆ Language

string EasyTalk.Controller.EasyTalkGameState.Language
getset

Gets or sets the language used by EasyTalk. If set, the onLanguageChanged callback will also be triggered.

◆ SessionID

string EasyTalk.Controller.EasyTalkGameState.SessionID
getset

Event Documentation

◆ onLanguageChanged

OnLanguageChanged EasyTalk.Controller.EasyTalkGameState.onLanguageChanged

The callback which is triggered when the language changes.