Skip to main content

Module lua_libs

Module lua_libs 

Source
Expand description

Standard Lua libraries available as Factorio globals (math, string, table).

Stubs exist for cargo check / IDE support only. Calls lower to the real Lua library methods. Overloads that need distinct Rust names (random_int, format_2, …) are remapped to the Lua name by the frontend.

Structs§

LuaMath
Lua math library (Factorio uses deterministic implementations).
LuaStringLib
Lua string library (includes Factorio’s pack / packsize / unpack).
LuaTableLib
Lua table library.