namespace YooAsset
{
public struct DownloadStatus
{
///
/// 下载是否完成
///
public bool IsDone;
///
/// 下载进度(0f~1f)
///
public float Progress;
///
/// 需要下载的总字节数
///
public ulong TotalBytes;
///
/// 已经下载的字节数
///
public ulong DownloadedBytes;
public static DownloadStatus CreateDefaultStatus()
{
DownloadStatus status = new DownloadStatus();
status.IsDone = false;
status.Progress = 0f;
status.TotalBytes = 0;
status.DownloadedBytes = 0;
return status;
}
}
}