Editing Mod API Reference
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, | + | * 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. |