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

Method contextSetup

source/game/scripting/StarLuaComponents.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void LuaBaseComponent::contextSetup() {
142 m_context->setPath("self", m_context->createTable());
143
144 for (auto const& p : m_callbacks)
145 m_context->setCallbacks(p.first, p.second);
146}
147
148void LuaBaseComponent::contextShutdown() {}
149

Callers

nothing calls this directly

Calls 3

setCallbacksMethod · 0.80
createTableMethod · 0.60
setPathMethod · 0.45

Tested by

no test coverage detected