Get all children of a parent entity 获取父实体的所有子实体
Clear all hierarchy data 清除所有层级数据
Clear any records involving this entity 清理任何涉及该实体的记录
Get all entities that have a parent 获取所有有父实体的实体
Get all entities that have children 获取所有有子实体的实体
Get all ancestors of an entity (parent, grandparent, etc.) 获取实体的所有祖先(父、祖父等)
Get depth of an entity in hierarchy (root = 0) 获取实体在层级中的深度(根实体 = 0)
Get all descendants of an entity (children, grandchildren, etc.) 获取实体的所有后代(子、孙等)
Get root entities (entities with no parent) 获取根实体(无父实体的实体)
Internal use only: write final state (does not trigger events) 仅内部用:按照最终状态写入(不触发事件)
Get parent of an entity 获取实体的父实体
Get total number of parent-child relationships 获取父子关系的总数
Fast retrieval of children when parent is destroyed 父被销毁时快速拿到孩子
Ancestor detection: check if child is an ancestor of newParent (prevents cycles) 祖先检测:child 是否是 newParent 的祖先(用于防循环)
Bidirectional index for parent-child relationships 父子关系的双向索引