Update AssetSystem

This commit is contained in:
hevinci
2022-03-22 21:18:33 +08:00
parent 39c69b1d98
commit 68430488b3
6 changed files with 25 additions and 25 deletions
@@ -5,7 +5,7 @@ using UnityEngine;
namespace YooAsset
{
internal class BundleFileLoader
internal class AssetBundleLoader
{
public enum EStatus
{
@@ -46,7 +46,7 @@ namespace YooAsset
internal AssetBundle CacheBundle { private set; get; }
public BundleFileLoader(BundleInfo bundleInfo)
public AssetBundleLoader(BundleInfo bundleInfo)
{
BundleFileInfo = bundleInfo;
RefCount = 0;
@@ -157,7 +157,7 @@ namespace YooAsset
if (BundleFileInfo.IsEncrypted)
{
if (AssetSystem.DecryptionServices == null)
throw new Exception($"{nameof(BundleFileLoader)} need IDecryptServices : {BundleFileInfo.BundleName}");
throw new Exception($"{nameof(AssetBundleLoader)} need IDecryptServices : {BundleFileInfo.BundleName}");
ulong offset = AssetSystem.DecryptionServices.GetFileOffset(BundleFileInfo);
if (_isWaitForAsyncComplete)
@@ -4,16 +4,16 @@ using System.Collections.Generic;
namespace YooAsset
{
internal class DependBundleGrouper
internal class DependAssetBundleGrouper
{
/// <summary>
/// 依赖的资源包加载器列表
/// </summary>
private readonly List<BundleFileLoader> _dependBundles;
private readonly List<AssetBundleLoader> _dependBundles;
public DependBundleGrouper(string assetPath)
public DependAssetBundleGrouper(string assetPath)
{
_dependBundles = AssetSystem.CreateDependBundleLoaders(assetPath);
_dependBundles = AssetSystem.CreateDependAssetBundleLoaders(assetPath);
}
/// <summary>