Files
YooAsset/Assets/YooAsset/Runtime/FileSystem/DefaultEditorFileSystem/Operation/DEFSLoadBundleOperation.cs
2024-12-10 18:00:13 +08:00

31 lines
890 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;
Result = new VirtualBundle(_fileSystem, _bundle);
}
internal override void InternalOnUpdate()
{
}
internal override void InternalWaitForAsyncComplete()
{
}
public override void AbortDownloadOperation()
{
}
}
}