Namespace: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) (Add currentNamespace) |
||
Line 1: | Line 1: | ||
{{quote|a namespace is a set of symbols that are used to organize objects of various kinds, so that these objects may be referred to by name. A namespace ensures that all the identifiers within it have unique names so that they can be easily identified.|Wikipedia|https://en.wikipedia.org/wiki/Namespace}} | |||
Namespace - set of variables. | Namespace - set of variables. Introduced with {{arma2}}. | ||
== Get namespace == | == Get namespace == | ||
These | These commands return the "Namespace" type: | ||
{| class="wikitable" | |||
! Game !! Command !! Description | |||
|- | |||
| {{GVI|arma2|1.00}} || [[missionNamespace]] || returns the global namespace attached to the mission | |||
|- | |||
| {{GVI|arma2|1.00}} || [[parsingNamespace]] || returns the global namespace attached to the [[PreProcessor Commands|Config Parser]] | |||
|- | |||
| {{GVI|arma2|1.00}} || [[uiNamespace]] || returns the global namespace attached to the user interface | |||
|- | |||
| {{GVI|tkoh|1.00}} || [[profileNamespace]] || returns the global namespace attached to the user profile | |||
|- | |||
| {{GVI|arma3|1.48}} || [[currentNamespace]] || returns the current namespace. Can be compared with [[isEqualTo]]. | |||
|} | |||
You can save values in this different Namespaces without overwriting the variables with the same name. | |||
== Get namespace data == | == Get namespace data == | ||
You can use the above with [[getVariable]] to get data. | You can use the above with [[getVariable]] to get data. | ||
== Set namespace data == | == Set namespace data == | ||
You can use the above with [[setVariable]] or "[[with]] '''namespace | You can use the above with [[setVariable]] or "[[with]] '''namespace''' [[do]]" to set data. | ||
[[Category: Data Types]] | [[Category: Data Types]] |
Revision as of 17:56, 31 December 2019
Namespace - set of variables. Introduced with Arma 2.
Get namespace
These commands return the "Namespace" type:
Game | Command | Description |
---|---|---|
1.00 | missionNamespace | returns the global namespace attached to the mission |
1.00 | parsingNamespace | returns the global namespace attached to the Config Parser |
1.00 | uiNamespace | returns the global namespace attached to the user interface |
1.00 | profileNamespace | returns the global namespace attached to the user profile |
1.48 | currentNamespace | returns the current namespace. Can be compared with isEqualTo. |
You can save values in this different Namespaces without overwriting the variables with the same name.
Get namespace data
You can use the above with getVariable to get data.
Set namespace data
You can use the above with setVariable or "with namespace do" to set data.