MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / NotifyDeleted

Method NotifyDeleted

Source/Objects/object.cpp:379–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void Object::NotifyDeleted(Object *o) {
380 if (parent == o) {
381 SetParent(NULL);
382 }
383 connected_to.erase(std::remove(connected_to.begin(), connected_to.end(), o->GetID()), connected_to.end());
384}
385
386void Object::Moved(Object::MoveType type) {
387 if (parent) {

Callers 2

RemoveObjectMethod · 0.45
UngroupSelectedMethod · 0.45

Calls 4

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected