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

Function CompScriptDeleteWorld

engine/gameobject/src/gameobject/comp_script.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 CreateResult CompScriptDeleteWorld(const ComponentDeleteWorldParams& params)
58 {
59 if (params.m_World != 0x0)
60 {
61 CompScriptWorld* w = (CompScriptWorld*)params.m_World;
62 dmScript::DeleteScriptWorld(w->m_ScriptWorld);
63 delete w;
64 return CREATE_RESULT_OK;
65 }
66 else
67 {
68 return CREATE_RESULT_UNKNOWN_ERROR;
69 }
70 }
71
72 CreateResult CompScriptCreate(const ComponentCreateParams& params)
73 {

Callers

nothing calls this directly

Calls 1

DeleteScriptWorldFunction · 0.85

Tested by

no test coverage detected