MCPcopy Create free account
hub / github.com/defold/defold / PushPfxCallbackArguments

Function PushPfxCallbackArguments

engine/gui/src/gui_script.cpp:4695–4706  ·  view source on GitHub ↗

Called when the Lua callback is invoked

Source from the content-addressed store, hash-verified

4693
4694 // Called when the Lua callback is invoked
4695 static void PushPfxCallbackArguments(lua_State* L, void* user_data)
4696 {
4697 GuiPfxEmitterScriptCallbackData* data = (GuiPfxEmitterScriptCallbackData*)user_data;
4698 GuiLuaCallback* luainfo = &data->m_Data->m_LuaInfo;
4699 if (dmGui::IsNodeValid(luainfo->m_Scene, luainfo->m_Node)) {
4700 LuaPushNode(L, luainfo->m_Scene, luainfo->m_Node);
4701 } else {
4702 lua_pushnil(L);
4703 }
4704 dmScript::PushHash(L, data->m_EmitterID);
4705 lua_pushinteger(L, data->m_EmitterState);
4706 }
4707
4708 static void EmitterStateChangedCallback(uint32_t num_awake_emitters, dmhash_t emitter_id, dmParticle::EmitterState emitter_state, void* user_data)
4709 {

Callers

nothing calls this directly

Calls 5

IsNodeValidFunction · 0.85
LuaPushNodeFunction · 0.85
lua_pushnilFunction · 0.85
PushHashFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected