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

Method enable_memory_object

ogsr_engine/xrGame/script_game_object2.cpp:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void CScriptGameObject::enable_memory_object(CScriptGameObject* game_object, bool enable)
236{
237 CCustomMonster* monster = smart_cast<CCustomMonster*>(&object());
238 if (!monster)
239 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CGameObject : cannot access class member enable_memory_object!");
240 else
241 monster->memory().enable(&game_object->object(), enable);
242}
243
244const xr_vector<CNotYetVisibleObject>& CScriptGameObject::not_yet_visible_objects() const
245{

Callers

nothing calls this directly

Calls 5

script_logMethod · 0.80
objectFunction · 0.50
enableMethod · 0.45
memoryMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected