This set represents a set of variables in text, denoted by Implemented at e.g. UI.Variables/Speech.Variables. The event OnFind can be used to resolve a variable not found in either custom variables or the language (for localization) set. Nested variables (variables in a variables text) are evaluated at the point of replacement, not load.
Public Member Functions | |
FullVariableSet () | |
Creates a new complete variable set. More... | |
void | ChangeLanguageSet (LanguageSet language) |
Changes the language set. Called when the language is changed. More... | |
string | GetValue (string variableString) |
Gets the content of a named variable. More... | |
void | SetGroupResolver (GroupResolve resolver) |
Sets the group resolver to use when resolving a group name from a variable that isn't found in the languages groups. More... | |
void | SetValue (string code, string value) |
Sets a custom variable with the given name and value. This will take top priority. More... | |
Public Attributes | |
VariableSet | Custom |
The custom set of variables added and edited at runtime. More... | |
LanguageSet | Language |
The set of variables loaded from the language file. More... | |
Properties | |
string | this[string code] [get, set] |
Gets or sets custom variables. More... | |
Events | |
OnVariableFind | OnFind |
A callback called if a variable isn't found in either Custom/Language. More... | |
OnVariableChange | OnChange |
A callback called when a custom variable in this set is changed. More... | |
|
inline |
Creates a new complete variable set.
|
inline |
Changes the language set. Called when the language is changed.
language | The new language set to use. |
|
inline |
Gets the content of a named variable.
variableString | The variable name. |
|
inline |
Sets the group resolver to use when resolving a group name from a variable that isn't found in the languages groups.
resolver | The resolver to use. |
|
inline |
Sets a custom variable with the given name and value. This will take top priority.
code | The name of the variable to set. |
value | The value to set it to. |
VariableSet Wrench.FullVariableSet.Custom |
The custom set of variables added and edited at runtime.
LanguageSet Wrench.FullVariableSet.Language |
The set of variables loaded from the language file.
|
getset |
Gets or sets custom variables.
code | The name of the variable to get/set. |
OnVariableChange Wrench.FullVariableSet.OnChange |
A callback called when a custom variable in this set is changed.
OnVariableFind Wrench.FullVariableSet.OnFind |
A callback called if a variable isn't found in either Custom/Language.