mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 重命名命名空间从GFramework.Game.Abstractions.coroutine到GFramework.Core.Abstractions.coroutine - 更新ICoroutineContext.cs、ICoroutineHandle.cs、ICoroutineScheduler.cs、 ICoroutineScope.cs、ICoroutineSystem.cs、IYieldInstruction.cs的命名空间 - 更新测试覆盖率计划文档,添加协程模块测试计划 - 新增协程模块测试计划,包含15个源文件,计划91个测试用例 - 添加CoroutineHandleTests.cs等7个协程相关测试文件的计划
18 lines
505 B
C#
18 lines
505 B
C#
namespace GFramework.Core.Abstractions.coroutine;
|
|
|
|
/// <summary>
|
|
/// 表示一个可等待的指令接口,用于协程中的等待操作
|
|
/// </summary>
|
|
public interface IYieldInstruction
|
|
{
|
|
/// <summary>
|
|
/// 获取当前等待指令是否已完成
|
|
/// </summary>
|
|
bool IsDone { get; }
|
|
|
|
/// <summary>
|
|
/// 更新等待指令的状态
|
|
/// </summary>
|
|
/// <param name="deltaTime">自上一帧以来的时间间隔(以秒为单位)</param>
|
|
void Update(float deltaTime);
|
|
} |