INodeGroup.cs 526 B

123456789101112131415161718
  1. using XGame.Framework.Asyncs;
  2. namespace XGame.Framework.Nodes
  3. {
  4. public interface INodeGroup
  5. {
  6. bool IsActive(NodeKey nodeKey);
  7. IAsync AddAsync(NodeKey nodeKey, object intent = null);
  8. void Remove(NodeKey nodeKey, bool isDestroy = false);
  9. /// <summary>
  10. /// 预加载,已经加载的返回空
  11. /// 加载完成不会显示
  12. /// </summary>
  13. /// <param name="nodeKey"></param>
  14. /// <returns></returns>
  15. IAsync Preload(NodeKey nodeKey);
  16. }
  17. }