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

Method switch_torch

ogsr_engine/xrGame/object_handler.cpp:262–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262IC void CObjectHandler::switch_torch(CInventoryItem* inventory_item, bool value)
263{
264 CTorch* torch = smart_cast<CTorch*>(inventory_item);
265 if (torch && attached(torch) && planner().object().g_Alive())
266 torch->Switch(value);
267}
268
269void CObjectHandler::attach(CInventoryItem* inventory_item)
270{

Callers

nothing calls this directly

Calls 4

attachedFunction · 0.85
g_AliveMethod · 0.80
objectMethod · 0.45
SwitchMethod · 0.45

Tested by

no test coverage detected