MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / UnattachChild

Function UnattachChild

Descent3/attach.cpp:676–684  ·  view source on GitHub ↗

Unattaches a child from an attach point

Source from the content-addressed store, hash-verified

674
675// Unattaches a child from an attach point
676bool UnattachChild(object *parent, char parent_ap) {
677 object *child;
678
679 if ((child = ObjGet(parent->attach_children[parent_ap])) != NULL) {
680 return UnattachFromParent(child);
681 }
682
683 return false;
684}
685
686// Unattaches all children from a parent object
687bool UnattachChildren(object *parent) {

Callers 2

osipf_UnattachChildFunction · 0.85
dUnattachChildFunction · 0.85

Calls 2

ObjGetFunction · 0.85
UnattachFromParentFunction · 0.85

Tested by

no test coverage detected