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

Method InsertVehicle

engine/Poseidon/World/WorldImpl.cpp:1235–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233 _vehicles.Remove(vehicle);
1234}
1235void World::InsertVehicle(Entity* vehicle)
1236{
1237#if LOG_ADD_REMOVE_VEHICLE
1238 LOG_DEBUG(World, "World::InsertVehicle {}", (const char*)vehicle->GetDebugName());
1239#endif
1240 DoAssert(vehicle->RefCounter() == 0 || _vehicles.Find(vehicle) < 0);
1241 _vehicles.Insert(vehicle);
1242}
1243void World::DeleteVehicle(Entity* vehicle)
1244{
1245#if LOG_ADD_REMOVE_VEHICLE

Callers

nothing calls this directly

Calls 4

GetDebugNameMethod · 0.45
RefCounterMethod · 0.45
FindMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected