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

Method update

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

Source from the content-addressed store, hash-verified

111}
112
113void ComponentLua::update(float delta)
114{
115 if (_succeedLoadingScript && getLuaFunction(ComponentLua::UPDATE))
116 {
117 getUserData();
118 lua_State* l = LuaEngine::getInstance()->getLuaStack()->getLuaState();
119 lua_pushnumber(l, delta);
120 LuaEngine::getInstance()->getLuaStack()->executeFunction(2);
121 }
122}
123
124void ComponentLua::onEnter()
125{

Calls 5

getInstanceFunction · 0.85
lua_pushnumberFunction · 0.85
getLuaStateMethod · 0.80
executeFunctionMethod · 0.80
getUserDataFunction · 0.50

Tested by

no test coverage detected