EasyTalk API
|
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. | |
The EasyTalkGameState is used to keep track of global settings used by the EasyTalk system during runtime.
delegate void EasyTalk.Controller.EasyTalkGameState.OnLanguageChanged | ( | string | oldLanguage, |
string | newLanguage ) |
Defines a delegate method to be called when the language is changed.
oldLanguage | The old language being used. |
newLanguage | The new language to use. |
|
staticprivate |
The active EasyTalkGameState instance.
|
private |
The language currently being used by EasyTalk.
|
private |
|
staticget |
Gets the instance of the EasyTalk game state.
|
getset |
Gets or sets the language used by EasyTalk. If set, the onLanguageChanged callback will also be triggered.
|
getset |
OnLanguageChanged EasyTalk.Controller.EasyTalkGameState.onLanguageChanged |
The callback which is triggered when the language changes.