namespace XGame.Framework.Nodes
{
    /// <summary>
    /// 不是真正的树结构，只是按照分组id保存
    /// </summary>
    public interface INodeTree : INodeGroup
    {
        /// <summary>
        /// 根节点，全局唯一
        /// </summary>
        INode Root { get; }
        /// <summary>
        /// 移除NodeGroup
        /// </summary>
        /// <param name="groupId"></param>
        /// <param name="isDestroy"></param>
        void RemoveGroup(uint groupId, bool isDestroy = false);
    }
    public interface INodeTreeSetter
    {
        INodeTree NodeTree { set; }
    }
}