update file system

重构运行时核心代码
This commit is contained in:
何冠峰
2024-12-24 18:23:19 +08:00
parent 6d6fd3af2c
commit 6254d00bb5
67 changed files with 1811 additions and 204 deletions
@@ -7,7 +7,7 @@ namespace YooAsset
/// <summary>
/// 加载结果
/// </summary>
public object Result { protected set; get; }
public BundleResult Result { protected set; get; }
/// <summary>
/// 下载进度
@@ -24,4 +24,25 @@ namespace YooAsset
/// </summary>
public abstract void AbortDownloadOperation();
}
internal sealed class FSLoadBundleCompleteOperation : FSLoadBundleOperation
{
private readonly string _error;
internal FSLoadBundleCompleteOperation(string error)
{
_error = error;
}
internal override void InternalOnStart()
{
Status = EOperationStatus.Failed;
Error = _error;
}
internal override void InternalOnUpdate()
{
}
public override void AbortDownloadOperation()
{
}
}
}