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

Method RemoveAttachment

engine/Poseidon/World/WorldSetup.cpp:630–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630void World::RemoveAttachment(AttachedOnVehicle* attach)
631{
632 int index = _attached.Find(attach);
633 PoseidonAssert(index >= 0);
634 if (index >= 0)
635 {
636 _attached.Delete(index);
637 }
638}
639
640void VehicleList::Add(Entity* object)
641{

Callers 1

~AttachedOnVehicleMethod · 0.80

Calls 2

FindMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected