mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
36 lines
860 B
C#
36 lines
860 B
C#
|
|
namespace YooAsset
|
|
{
|
|
internal abstract class FSClearCacheFilesOperation : AsyncOperationBase
|
|
{
|
|
}
|
|
|
|
internal sealed class FSClearCacheFilesCompleteOperation : FSClearCacheFilesOperation
|
|
{
|
|
private readonly string _error;
|
|
|
|
internal FSClearCacheFilesCompleteOperation()
|
|
{
|
|
_error = null;
|
|
}
|
|
internal FSClearCacheFilesCompleteOperation(string error)
|
|
{
|
|
_error = error;
|
|
}
|
|
internal override void InternalStart()
|
|
{
|
|
if (string.IsNullOrEmpty(_error))
|
|
{
|
|
Status = EOperationStatus.Succeed;
|
|
}
|
|
else
|
|
{
|
|
Status = EOperationStatus.Failed;
|
|
Error = _error;
|
|
}
|
|
}
|
|
internal override void InternalUpdate()
|
|
{
|
|
}
|
|
}
|
|
} |