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

Method lua_game_object

ogsr_engine/xrGame/GameObject.cpp:789–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789CScriptGameObject* CGameObject::lua_game_object() const
790{
791 if (!m_spawned)
792 {
793 Msg("!! [%s] you are trying to use a destroyed object name=[%s] getDestroy=%d", __FUNCTION__, cName().c_str(), getDestroy());
794 LogStackTrace("!!stack trace:\n", false);
795 }
796
797 THROW(m_spawned);
798 if (!m_lua_game_object)
799 m_lua_game_object = xr_new<CScriptGameObject>(const_cast<CGameObject*>(this));
800 return (m_lua_game_object);
801}
802
803void CGameObject::DestroyObject()
804{

Callers 15

usefulMethod · 0.80
OnPerformTradeMethod · 0.80
callbackMethod · 0.80
setupMethod · 0.80
HitMethod · 0.80
feel_touch_newMethod · 0.80
feel_touch_deleteMethod · 0.80
net_RelcaseMethod · 0.80
HitMethod · 0.80
tpfGetActorFunction · 0.80
get_object_by_nameFunction · 0.80

Calls 4

MsgFunction · 0.85
getDestroyFunction · 0.85
LogStackTraceFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected