From 68a6a7fcfa330e2dc2f816b4a24b0da07e1e1e39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com>
Date: Tue, 1 Apr 2025 16:26:44 +0800
Subject: [PATCH] modify
---
Runtime/ObjectPool/IObjectPool.cs | 60 ++++++++-----------------------
1 file changed, 15 insertions(+), 45 deletions(-)
diff --git a/Runtime/ObjectPool/IObjectPool.cs b/Runtime/ObjectPool/IObjectPool.cs
index 11ad8cb..e44fbdc 100644
--- a/Runtime/ObjectPool/IObjectPool.cs
+++ b/Runtime/ObjectPool/IObjectPool.cs
@@ -2,95 +2,65 @@
namespace AlicizaX.ObjectPool
{
+ public interface IObjectPool
+ {
+ }
+
///
/// 对象池接口。
///
/// 对象类型。
- public interface IObjectPool where T : ObjectBase
+ public interface IObjectPool : IObjectPool where T : ObjectBase
{
///
/// 获取对象池名称。
///
- string Name
- {
- get;
- }
+ string Name { get; }
///
/// 获取对象池完整名称。
///
- string FullName
- {
- get;
- }
+ string FullName { get; }
///
/// 获取对象池对象类型。
///
- Type ObjectType
- {
- get;
- }
+ Type ObjectType { get; }
///
/// 获取对象池中对象的数量。
///
- int Count
- {
- get;
- }
+ int Count { get; }
///
/// 获取对象池中能被释放的对象的数量。
///
- int CanReleaseCount
- {
- get;
- }
+ int CanReleaseCount { get; }
///
/// 获取是否允许对象被多次获取。
///
- bool AllowMultiSpawn
- {
- get;
- }
+ bool AllowMultiSpawn { get; }
///
/// 获取或设置对象池自动释放可释放对象的间隔秒数。
///
- float AutoReleaseInterval
- {
- get;
- set;
- }
+ float AutoReleaseInterval { get; set; }
///
/// 获取或设置对象池的容量。
///
- int Capacity
- {
- get;
- set;
- }
+ int Capacity { get; set; }
///
/// 获取或设置对象池对象过期秒数。
///
- float ExpireTime
- {
- get;
- set;
- }
+ float ExpireTime { get; set; }
///
/// 获取或设置对象池的优先级。
///
- int Priority
- {
- get;
- set;
- }
+ int Priority { get; set; }
///
/// 创建对象。