Types/table

From Official Factorio Wiki
Revision as of 14:34, 25 October 2024 by Bilka (talk | contribs) (Undo revision 202820 by BilkaBot (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A simple Lua table. See: http://www.lua.org/pil/2.5.html

Array-like Lua tables are typically 1-indexed.

Tables used by prototypes may parsed via an internal class called "property tree". Errors that reference this class treat tables as 0-indexed.
For example Value must be a dictionary in property tree at ROOT.lab.lab.light[0] refers to element 0 of the property tree array which in Lua is at index 1.