MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / operator()

Method operator()

ogsr_engine/xrGame/restricted_object.cpp:288–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 IC CRestrictionPredicate(RestrictionSpace::ERestrictorTypes restrictor_type) { m_restrictor_type = restrictor_type; }
287
288 IC void operator()(CRestrictedObject* object, ALife::_OBJECT_ID id) const
289 {
290 if (add)
291 object->add_object_restriction(id, m_restrictor_type);
292 else
293 object->remove_object_restriction(id, m_restrictor_type);
294 }
295};
296
297void CRestrictedObject::add_restrictions(const xr_vector<ALife::_OBJECT_ID>& out_restrictions, const xr_vector<ALife::_OBJECT_ID>& in_restrictions)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected