2024-11-29 21:37:01 +08:00

30 lines
828 B
C#

namespace YooAsset
{
internal class DEFSLoadBundleOperation : FSLoadBundleOperation
{
private readonly DefaultEditorFileSystem _fileSystem;
private readonly PackageBundle _bundle;
internal DEFSLoadBundleOperation(DefaultEditorFileSystem fileSystem, PackageBundle bundle)
{
_fileSystem = fileSystem;
_bundle = bundle;
}
internal override void InternalOnStart()
{
DownloadProgress = 1f;
DownloadedBytes = _bundle.FileSize;
Status = EOperationStatus.Succeed;
}
internal override void InternalOnUpdate()
{
}
internal override void InternalWaitForAsyncComplete()
{
}
public override void AbortDownloadOperation()
{
}
}
}