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

Method setScripts

source/game/scripting/StarLuaComponents.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void LuaBaseComponent::setScripts(StringList scripts) {
30 if (initialized())
31 throw LuaComponentException("Cannot call LuaWorldComponent::setScripts when LuaWorldComponent is initialized");
32
33 m_scripts = std::move(scripts);
34}
35
36void LuaBaseComponent::addCallbacks(String groupName, LuaCallbacks callbacks) {
37 if (!m_callbacks.insert(groupName, callbacks).second)

Callers 15

initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
startLuaScriptsMethod · 0.80
MonsterMethod · 0.80
initMethod · 0.80
runStatScriptMethod · 0.80
setupTechModulesMethod · 0.80
StatusControllerMethod · 0.80
addUniqueEffectMethod · 0.80
initScriptMethod · 0.80
initLuaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected