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

Method DeleteVehicle

engine/Poseidon/World/WorldImpl.cpp:1243–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241 _vehicles.Insert(vehicle);
1242}
1243void World::DeleteVehicle(Entity* vehicle)
1244{
1245#if LOG_ADD_REMOVE_VEHICLE
1246 LOG_DEBUG(World, "World::DeleteVehicle {}", (const char*)vehicle->GetDebugName());
1247#endif
1248 DoAssert(_vehicles.Find(vehicle) >= 0);
1249 _vehicles.Delete(vehicle);
1250}
1251
1252void World::AddOutVehicle(Entity* vehicle)
1253{

Callers

nothing calls this directly

Calls 3

GetDebugNameMethod · 0.45
FindMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected