IObjectPoolManager.ts 501 B

1234567891011121314151617181920212223
  1. export interface IObjectPoolManager {
  2. /**
  3. * 获取对象池数量。
  4. */
  5. GetCount(): number;
  6. /** 创建节点池 */
  7. CreatePool(poolName: string): cc.NodePool;
  8. /** 预创建节点池 */
  9. CreatePrePool(poolName: string, prefab: cc.Prefab, maxNum: number): cc.NodePool;
  10. /** 获取指定节点池 */
  11. GetPool(poolName: string): cc.NodePool;
  12. /** 是否节点池 */
  13. ReleasePool(poolName: string);
  14. /** 清空所有节点池 */
  15. ReleaseAllPool();
  16. }