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

Method LuaRoot

source/game/scripting/StarLuaRoot.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace Star {
5
6LuaRoot::LuaRoot() {
7 auto& root = Root::singleton();
8 m_scriptCache = make_shared<ScriptCache>();
9
10 restart();
11
12 m_rootReloadListener = make_shared<CallbackListener>([cache = m_scriptCache]() {
13 cache->clear();
14 });
15 root.registerReloadListener(m_rootReloadListener);
16
17 m_storageDirectory = root.toStoragePath("lua");
18}
19
20LuaRoot::~LuaRoot() {
21 shutdown();

Callers

nothing calls this directly

Calls 4

singletonClass · 0.85
toStoragePathMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected