INodeTree.cs 613 B

1234567891011121314151617181920212223
  1. namespace XGame.Framework.Nodes
  2. {
  3. /// <summary>
  4. /// 不是真正的树结构,只是按照分组id保存
  5. /// </summary>
  6. public interface INodeTree : INodeGroup
  7. {
  8. /// <summary>
  9. /// 根节点,全局唯一
  10. /// </summary>
  11. INode Root { get; }
  12. /// <summary>
  13. /// 移除NodeGroup
  14. /// </summary>
  15. /// <param name="groupId"></param>
  16. /// <param name="isDestroy"></param>
  17. void RemoveGroup(uint groupId, bool isDestroy = false);
  18. }
  19. public interface INodeTreeSetter
  20. {
  21. INodeTree NodeTree { set; }
  22. }
  23. }