Contenido#

Tipos y métodos. Parámetro y tipos de resultados se refieren a la capa X4 indicada; los contratos desconocidos son explícitos.

Lua globales#

Llamada / evento Devuelve
assert any, ...
collectgarbage number | boolean
dofile any, ...
error never
getmetatable table | any | nil
ipairs function, table, number
next (any, any) | nil
pairs function, table, nil
pcall boolean, any, ...
rawget any | nil
rawset table
require any
select number | any, ...
setmetatable table
tonumber number | nil
tostring string
type string
unpack any, ...
xpcall boolean, any, ...

debug#

Llamada / evento Devuelve
debug.getupvalue (string, any) | nil
debug.setupvalue string | nil

ffi#

Llamada / evento Devuelve
ffi.cast cdata
ffi.cdef none
ffi.copy none
ffi.new cdata
ffi.sizeof number | nil
ffi.string string

matemáticas#

Llamada / evento Devuelve
math.abs number
math.asin number
math.atan2 number
math.ceil number
math.cos number
math.deg number
math.floor number
math.max number
math.min number
math.rad number
math.random number
math.sin number
math.sqrt number

paquete#

Llamada / evento Devuelve
package.loadlib function | (nil, string, string)

string#

Llamada / evento Devuelve
string.byte number, ...
string.char string
string.find (number, number, ...) | nil
string.format string
string.gmatch function
string.lower string
string.rep string
string.upper string

table#

Llamada / evento Devuelve
table.concat string
table.insert none
table.remove any | nil
table.sort none
table.unpack any, ...