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

Method createContext

source/game/scripting/StarLuaRoot.cpp:91–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91LuaContext LuaRoot::createContext(String const& script) {
92 return createContext(StringList{script});
93}
94
95LuaContext LuaRoot::createContext(StringList const& scriptPaths) {
96 auto newContext = m_luaEngine->createContext();

Callers 3

updateVersionedJsonMethod · 0.45
itemConfigMethod · 0.45
initMethod · 0.45

Calls 12

singletonClass · 0.85
errorFunction · 0.85
setRequireFunctionMethod · 0.80
loadContextScriptMethod · 0.80
assetsMethod · 0.80
assetExistsMethod · 0.80
setCallbacksMethod · 0.80
createTableMethod · 0.60
getMethod · 0.45
setMethod · 0.45
containsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected