MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / remove_object

Function remove_object

ogsr_engine/xrGame/level_script.cpp:944–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944void remove_object(u16 id)
945{
946 DBG_ScriptObject* dbg_obj = get_object(id);
947 if (!dbg_obj)
948 return;
949
950 xr_delete(dbg_obj);
951 Level().getScriptRenderQueue()->erase(id);
952}
953
954DBG_ScriptObject* add_object(u16 id, DebugRenderType type)
955{

Callers 5

add_objectFunction · 0.85
deactivateMethod · 0.85
remove_objectMethod · 0.85
schedule_updateMethod · 0.85
remove_linksMethod · 0.85

Calls 4

get_objectFunction · 0.85
xr_deleteFunction · 0.85
getScriptRenderQueueMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected