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

Method remove

ogsr_engine/xrGame/client_spawn_manager.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void CClientSpawnManager::remove(REQUESTED_REGISTRY& registry, ALife::_OBJECT_ID requesting_id, ALife::_OBJECT_ID requested_id, bool no_warning)
69{
70 REQUESTED_REGISTRY::iterator I = registry.find(requested_id);
71 if (I == registry.end())
72 {
73 ai().script_engine().script_log(eLuaMessageTypeError, "There is no spawn callback on object with id %d from object with id %d!", requesting_id, requested_id);
74 return;
75 }
76
77 registry.erase(I);
78}
79
80void CClientSpawnManager::remove(ALife::_OBJECT_ID requesting_id, ALife::_OBJECT_ID requested_id)
81{

Callers

nothing calls this directly

Calls 5

script_logMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected