MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / contains

Method contains

source/core/StarLua.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool LuaTable::contains(char const* key) const {
41 return engine().tableGet(false, handleIndex(), key) != LuaNil;
42}
43
44void LuaTable::remove(char const* key) const {
45 engine().tableSet(false, handleIndex(), key, LuaNil);

Callers 15

setHoveredMethod · 0.45
setSelectedMethod · 0.45
bagLocationAtMethod · 0.45
sendEventMethod · 0.45
addButtonMethod · 0.45
removeButtonMethod · 0.45
idMethod · 0.45
makeSingleMethod · 0.45
constructorMethod · 0.45
buttonHandlerMethod · 0.45
imageHandlerMethod · 0.45
spinnerHandlerMethod · 0.45

Calls 1

tableGetMethod · 0.80

Tested by 11

TESTFunction · 0.36
storeLeafMethod · 0.36
storeIndexMethod · 0.36
removeAllFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36