Editing Mod API Reference

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 4: Line 4:
  
 
When writing a mod, you'll encounter variables/objects of three basic types:
 
When writing a mod, you'll encounter variables/objects of three basic types:
* Primitives: strings, numbers, booleans, etc.
+
* Primitives: strings, integers, numbers, etc.
 
* Tables: collections of key/value pairs.  A table is a lot like a hashmap or dictionary in other languages. Note that in Warzone, the key of a table will always be either a string or an integer.  Some places in this reference will refer to Arrays which are just tables with numeric keys starting at 1.
 
* Tables: collections of key/value pairs.  A table is a lot like a hashmap or dictionary in other languages. Note that in Warzone, the key of a table will always be either a string or an integer.  Some places in this reference will refer to Arrays which are just tables with numeric keys starting at 1.
 
* Proxy objects: Discussed in the next section.
 
* Proxy objects: Discussed in the next section.

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox