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

Method restartLua

source/game/StarUniverseClient.cpp:539–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void UniverseClient::restartLua() {
540 m_luaRoot->restart();
541 auto clientConfig = Root::singleton().assets()->json("/client.config");
542 m_luaRoot->tuneAutoGarbageCollection(clientConfig.getFloat("luaGcPause"), clientConfig.getFloat("luaGcStepMultiplier"));
543 auto enableImGui = Root::singleton().configuration()->getPath("safe.enableImGui");
544 if (enableImGui && enableImGui.toBool())
545 m_luaRoot->luaEngine().addImGui();
546}
547
548void UniverseClient::startLuaScripts() {
549 auto assets = Root::singleton().assets();

Callers 1

changeStateMethod · 0.80

Calls 10

singletonClass · 0.85
jsonMethod · 0.80
assetsMethod · 0.80
getFloatMethod · 0.80
configurationMethod · 0.80
toBoolMethod · 0.80
addImGuiMethod · 0.80
restartMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected