Localisation rule controlled by LocParserManager.
More...
|
string | GetID (string fileName, string varName, array< BaseContainer > objects, array< int > indexes) |
| Get intended ID of the string.
|
|
bool | Evaluate (string fileName, string varName, array< BaseContainer > objects) |
| Check if the string can be localized according to this rule.
|
|
BaseContainer | Localize (string fileName, string varName, array< BaseContainer > objects, string id, string text) |
| Check if the string can be localized according to this rule.
|
|
void | InitRule (notnull LocParserManager config) |
|
Localisation rule controlled by LocParserManager.
When parsing files, each found string is evaluated towards all available rules.
◆ Evaluate()
bool LocParserRule.Evaluate |
( |
string | fileName, |
|
|
string | varName, |
|
|
array< BaseContainer > | objects ) |
Check if the string can be localized according to this rule.
To be overloaded by inherited classes.
- Parameters
-
[in] | fileName | Name of the file (without path or extension) in which the string is |
[in] | varName | Name of the variable which holds the string |
[in] | objects | Hierarchy of script classes leading to the string, starting from the bottom-most one |
- Returns
- True if the string can be localized
Implemented in LocParserRule_Custom.
◆ GetID()
string LocParserRule.GetID |
( |
string | fileName, |
|
|
string | varName, |
|
|
array< BaseContainer > | objects, |
|
|
array< int > | indexes ) |
Get intended ID of the string.
To be overloaded by inherited classes.
- Parameters
-
[in] | fileName | Name of the file (without path or extension) in which the string is |
[in] | varName | Name of the variable which holds the string |
[in] | objects | Hierarchy of script classes leading to the string, starting from the bottom-most one |
[out] | index | Item index (when in array) |
- Returns
- Localization ID
Implemented in LocParserRule_Custom.
◆ InitRule()
◆ Localize()
BaseContainer LocParserRule.Localize |
( |
string | fileName, |
|
|
string | varName, |
|
|
array< BaseContainer > | objects, |
|
|
string | id, |
|
|
string | text ) |
Check if the string can be localized according to this rule.
To be overloaded by inherited classes.
- Parameters
-
[in] | fileName | Name of the file (without path or extension) in which the string is |
[in] | varName | Name of the variable which holds the string |
[in] | objects | Hierarchy of script classes leading to the string, starting from the bottom-most one |
[in] | id | Intended localization ID |
[in] | text | Content of the string |
- Returns
- Newly added container (can be null if no new container was added, e.g., when only logging or when it already existed in the database)
◆ m_Config
◆ m_ItemTemplate
The documentation for this interface was generated from the following file:
- WorkbenchGame/LocalizationEditor/LocParserRule.c