mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 重命名 IDisposable 接口为 IDestroyable 并移动到 lifecycle 命名空间 - 更新 Architecture.cs 中的可销毁组件集合类型从 IDisposable 到 IDestroyable - 修改 WaitForEvent 和 WaitForMultipleEvents 类实现 IDestroyable 接口 - 更新 AsyncContextAwareStateBase 和 ContextAwareStateBase 继承 IDestroyable 接口 - 修改 StateMachineSystem 中状态清理逻辑使用 IDestroyable 类型判断 - 更新 ILifecycle 接口继承关系使用新的 IDestroyable 接口
12 lines
294 B
C#
12 lines
294 B
C#
namespace GFramework.Core.Abstractions.lifecycle;
|
|
|
|
/// <summary>
|
|
/// 可销毁接口,为需要资源清理的组件提供标准销毁能力
|
|
/// </summary>
|
|
public interface IDestroyable
|
|
{
|
|
/// <summary>
|
|
/// 销毁组件并释放资源
|
|
/// </summary>
|
|
void Destroy();
|
|
} |