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

Method init

source/game/scripting/StarLuaComponents.hpp:302–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301template <typename Base>
302void LuaWorldComponent<Base>::init(World* world) {
303 if (Base::initialized())
304 uninit();
305
306 Base::setLuaRoot(world->luaRoot());
307 Base::addCallbacks("world", LuaBindings::makeWorldCallbacks(world));
308 Base::init();
309}
310
311template <typename Base>
312void LuaWorldComponent<Base>::uninit() {

Callers 1

ScriptableThreadMethod · 0.45

Calls 3

makeWorldCallbacksFunction · 0.85
initFunction · 0.85
luaRootMethod · 0.45

Tested by

no test coverage detected