Namespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Type exists.)
(Added details)
Line 1: Line 1:
'''Description:'''
'''Description:'''


Not Available
Namespace - set of variables.


Introduced with Armed Assault 2.


Introduced with Armed Assault 2.
== Get namespace ==
 
These statements return the "Namespace" type:
 
;[[parsingNamespace]]: Return the global namespace attached to config Parser
;[[missionNamespace]]: Return the global namespace attached to the mission
;[[uiNamespace]]: Return the global namespace attached to the user interface
 
You can save values in this different Namespaces without overwriting the variables with the same name.
 
== Set 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.




[[Category: Data Types]]
[[Category: Data Types]]

Revision as of 07:55, 12 June 2011

Description:

Namespace - set of variables.

Introduced with Armed Assault 2.

Get namespace

These statements return the "Namespace" type:

parsingNamespace
Return the global namespace attached to config Parser
missionNamespace
Return the global namespace attached to the mission
uiNamespace
Return the global namespace attached to the user interface

You can save values in this different Namespaces without overwriting the variables with the same name.

Set 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.