addChild
..Root.Object.addChild
Add another object as child to this object (another object’s parent do not change).
Add another object as child with nickname nick to this object (another object’s name do not change).
String
nick, any typeNativeCallable
, Callable
auto mother;
auto father;
mother.var son;
father.var daughter;
mother.addChild("step-daughter", father.getChild("daughter"));
mother.addChild(Object());
auto childrenArray.=(mother.getChildrenArray());
for (auto it.=(childrenArray.begin()).!=, childrenArray.end(), it.++, {
if (instanceOf(it.get(), Object), {
log(it.get().getName());
});
});
son
daughter
Anonymous3384