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

Method ChildLost

Source/Objects/group.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void Group::ChildLost(Object* obj) {
87 for (int i = 0, len = children.size(); i < len; ++i) {
88 if (children[i].direct_ptr == obj) {
89 children[i].direct_ptr = children.back().direct_ptr;
90 children.resize(children.size() - 1);
91 break;
92 }
93 }
94 child_moved = true;
95}
96
97void Group::FinalizeLoadedConnections() {
98 Object::FinalizeLoadedConnections();

Callers 3

ExecuteMethod · 0.45
ActorsEditor_AddEntityFunction · 0.45
SetParentMethod · 0.45

Calls 3

sizeMethod · 0.45
backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected