C4 Engine
C4 Engine API Documentation

Tree::GetFirstSubnode

Defined in:  TSTree.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 Tree::GetNextSubnode function should be called.
See Also

Tree::GetNextTreeNode

Tree::GetLastSubnode

Tree::GetSuperNode

Tree::GetRootNode