Lua API#
EG-Overlay does not define any global variables, unlike many other programs that interface via Lua. Instead certain functionality is exposed via embedded Lua Rust modules, and others through bundled Lua files.
EG-Overlay Modules#
Lua Types#
Various Lua types are referenced throughout this documentation. Each module documentation contains any specific types/classes and Lua provides the standard types below:
- nil#
- alias integer: number#
- alias float: number#
- number#
number
can hold both integer and floating-point numbers,however the two are not interchangeable in many instances. Module documentation will specify
integer
when only an integer is appropriate.
Warning
Supplying a real (floating-point) value in place of an integer may result in a Lua error.
- function#
Any Lua function.
- table#
A Lua object or sequence. Modules may expect specific table structures or fields and many will return data using tables.
- alias sequence: table#