LuaArray type is a fixed-length array provided by the RollingQuest engine as an alternative to standard Lua tables. It supports 1-based indexing, optional read-only mode, and an iterator interface. Use LuaArray when you need a collection with a known length that can be made immutable.
Standard Lua tables (
{}) work fine for most cases. Use LuaArray when you specifically need read-only protection or when an API returns a LuaArray.Constructors
Properties
Element Access
Arrays use 1-based indexing (like standard Lua):Methods
toReadonly
Returns a read-only version of the array.iterator
Returns an iterator for use withfor..in loops.