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

Function ResetScript

engine/gameobject/src/gameobject/gameobject_script.cpp:2366–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2364 static PropertyResult GetPropertyDefault(const HProperties properties, uintptr_t user_data, dmhash_t id, PropertyVar& out_var);
2365
2366 static void ResetScript(HScript script) {
2367 memset(script, 0, sizeof(Script));
2368 for (uint32_t i = 0; i < MAX_SCRIPT_FUNCTION_COUNT; ++i) {
2369 script->m_FunctionReferences[i] = LUA_NOREF;
2370 }
2371 script->m_InstanceReference = LUA_NOREF;
2372 }
2373
2374 HScript NewScript(lua_State* L, dmLuaDDF::LuaModule* lua_module)
2375 {

Callers 2

NewScriptFunction · 0.70
DeleteScriptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected