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

Method Find

engine/Poseidon/World/WorldSetup.cpp:737–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737int VehiclesDistributed::Find(Entity* vehicle) const
738{
739 int offset = 0;
740 int index = 0;
741#define ONE_LIST(list) \
742 index = list.Find(vehicle); \
743 if (index >= 0) \
744 return index + offset; \
745 offset += list.Size();
746 ONE_LIST(_visibleNear)
747 ONE_LIST(_visibleFar)
748 ONE_LIST(_invisibleNear)
749 ONE_LIST(_invisibleFar)
750 return -1;
751}
752
753void VehiclesDistributed::Delete(Entity* vehicle)
754{

Callers 8

RemoveAttachmentMethod · 0.45
TerminateScriptMethod · 0.45
AddVehicleMethod · 0.45
RemoveVehicleMethod · 0.45
InsertVehicleMethod · 0.45
DeleteVehicleMethod · 0.45
AddOutVehicleMethod · 0.45
RemoveOutVehicleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected