MCPcopy Create free account
hub / github.com/axmolengine/axmol / onExit

Method onExit

extensions/scripting/lua-bindings/manual/ComponentLua.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ComponentLua::onExit()
134{
135 if (_succeedLoadingScript && getLuaFunction(ComponentLua::ON_EXIT))
136 {
137 getUserData();
138 LuaEngine::getInstance()->getLuaStack()->executeFunction(1);
139 }
140}
141
142bool ComponentLua::getLuaFunction(std::string_view functionName)
143{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
executeFunctionMethod · 0.80
getUserDataFunction · 0.50

Tested by

no test coverage detected