Inhalt#

Typen und Methoden. Parameter- und Ergebnistypen beziehen sich auf die angegebene X4-Schicht; unbekannte Verträge sind explizit.

Lua globals#

Aufruf / Veranstaltung Rückgabe
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#

Aufruf / Veranstaltung Rückgabe
debug.getupvalue (string, any) | nil
debug.setupvalue string | nil

ffi#

Aufruf / Veranstaltung Rückgabe
ffi.cast cdata
ffi.cdef none
ffi.copy none
ffi.new cdata
ffi.sizeof number | nil
ffi.string string

Mathematik#

Aufruf / Veranstaltung Rückgabe
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

Verpackung#

Aufruf / Veranstaltung Rückgabe
package.loadlib function | (nil, string, string)

string#

Aufruf / Veranstaltung Rückgabe
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#

Aufruf / Veranstaltung Rückgabe
table.concat string
table.insert none
table.remove any | nil
table.sort none
table.unpack any, ...