C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Tree::GetLastSubnode

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

type *GetLastSubnode(voidconst;

Description
The GetLastSubnode function returns the last 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 last, the ListElement::Previous function should be called.
See Also

Tree::GetFirstSubnode

Tree::GetSuperNode

Tree::GetRootNode