MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Find

Method Find

engine/Poseidon/World/Detection/Target.cpp:458–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458int TargetList::Find(TargetType* obj) const
459{
460 for (int i = 0; i < Size(); i++)
461 {
462 if (Get(i)->idExact == obj)
463 {
464 return i;
465 }
466 }
467 return -1;
468}
469
470void EntityAI::AddNewTargets(TargetList& res, bool initialize)
471{

Callers 1

TrackTargetsMethod · 0.45

Calls 1

GetFunction · 0.50

Tested by

no test coverage detected