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

Method Insert

engine/Poseidon/World/WorldSetup.cpp:727–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727void VehiclesDistributed::Insert(Entity* vehicle)
728{
729 Fail("Obsolete");
730 vehicle->SetList(this);
731 _visibleNear.Add(vehicle);
732#if LOG_ADD_REMOVE_VEHICLE
733 LOG_DEBUG(World, "Vehicle {} inserted to list {:x}", (const char*)vehicle->GetDebugName(), (uintptr_t)this);
734#endif
735}
736
737int VehiclesDistributed::Find(Entity* vehicle) const
738{

Callers 2

DistributeImportancesMethod · 0.45
InsertVehicleMethod · 0.45

Calls 3

SetListMethod · 0.80
AddMethod · 0.45
GetDebugNameMethod · 0.45

Tested by

no test coverage detected