C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Tree::GetFirstSubnode

Defined in:  C4Tree.h
Returns the first subnode of an object.
Prototype

type *GetFirstSubnode(voidconst;

Description
The GetFirstSubnode function returns the first direct subnode of an object is a tree. If the object has no subnodes, then the return value is nullptr.

All of the direct subnodes of an object are stored in a single linked list. To go from one subnode to the next, starting with the first, the ListElement::Next function should be called.
See Also

Tree::GetNextNode

Tree::GetLastSubnode

Tree::GetSuperNode

Tree::GetRootNode