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

Method remove_object_restriction

ogsr_engine/xrGame/restricted_object.cpp:226–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226IC void CRestrictedObject::remove_object_restriction(ALife::_OBJECT_ID id, const RestrictionSpace::ERestrictorTypes& restrictor_type)
227{
228 NET_Packet net_packet;
229 object().u_EventGen(net_packet, GE_REMOVE_RESTRICTION, object().ID());
230 net_packet.w(&id, sizeof(id));
231 net_packet.w(&restrictor_type, sizeof(restrictor_type));
232 Level().Send(net_packet, net_flags(TRUE, TRUE));
233}
234
235template <typename P, const bool value, typename StrType>
236static void construct_restriction_string(StrType& temp_restrictions, const xr_vector<ALife::_OBJECT_ID>& restrictions, const shared_str& current_restrictions, const P& p,

Callers 1

operator()Method · 0.80

Calls 5

net_flagsFunction · 0.85
objectFunction · 0.50
u_EventGenMethod · 0.45
wMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected