52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace YooAsset
|
|
{
|
|
internal class EditorPlayModeImpl : IBundleServices
|
|
{
|
|
/// <summary>
|
|
/// 异步初始化
|
|
/// </summary>
|
|
public InitializationOperation InitializeAsync()
|
|
{
|
|
var operation = new EditorModeInitializationOperation();
|
|
OperationUpdater.ProcessOperaiton(operation);
|
|
return operation;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取资源版本号
|
|
/// </summary>
|
|
public int GetResourceVersion()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取内置资源标记列表
|
|
/// </summary>
|
|
public string[] GetManifestBuildinTags()
|
|
{
|
|
return new string[0];
|
|
}
|
|
|
|
#region IBundleServices接口
|
|
AssetBundleInfo IBundleServices.GetAssetBundleInfo(string bundleName)
|
|
{
|
|
Logger.Warning($"Editor play mode can not get asset bundle info.");
|
|
AssetBundleInfo bundleInfo = new AssetBundleInfo(bundleName, bundleName);
|
|
return bundleInfo;
|
|
}
|
|
string IBundleServices.GetAssetBundleName(string assetPath)
|
|
{
|
|
return assetPath;
|
|
}
|
|
string[] IBundleServices.GetAllDependencies(string assetPath)
|
|
{
|
|
return new string[] { };
|
|
}
|
|
#endregion
|
|
}
|
|
} |