style : Code text indent format

This commit is contained in:
hevinci
2023-12-21 19:40:13 +08:00
parent 727f356eea
commit 5e2d82d071
16 changed files with 146 additions and 146 deletions
@@ -1,54 +1,54 @@
namespace YooAsset
{
/// <summary>
/// 下载文件校验结果
/// </summary>
internal enum EVerifyResult
{
/// <summary>
/// 验证异常
/// </summary>
Exception = -7,
/// <summary>
/// 下载文件校验结果
/// </summary>
internal enum EVerifyResult
{
/// <summary>
/// 验证异常
/// </summary>
Exception = -7,
/// <summary>
/// 未找到缓存信息
/// </summary>
CacheNotFound = -6,
/// <summary>
/// 未找到缓存信息
/// </summary>
CacheNotFound = -6,
/// <summary>
/// 信息文件不存在
/// </summary>
InfoFileNotExisted = -5,
/// <summary>
/// 信息文件不存在
/// </summary>
InfoFileNotExisted = -5,
/// <summary>
/// 数据文件不存在
/// </summary>
DataFileNotExisted = -4,
/// <summary>
/// 数据文件不存在
/// </summary>
DataFileNotExisted = -4,
/// <summary>
/// 文件内容不足(小于正常大小)
/// </summary>
FileNotComplete = -3,
/// <summary>
/// 文件内容溢出(超过正常大小)
/// </summary>
FileOverflow = -2,
/// <summary>
/// 文件内容不匹配
/// </summary>
FileCrcError = -1,
/// <summary>
/// 文件内容不足(小于正常大小)
/// </summary>
FileNotComplete = -3,
/// <summary>
/// 默认状态(校验未完成)
/// </summary>
None = 0,
/// <summary>
/// 文件内容溢出(超过正常大小)
/// </summary>
FileOverflow = -2,
/// <summary>
/// 验证成功
/// </summary>
Succeed = 1,
}
/// <summary>
/// 文件内容不匹配
/// </summary>
FileCrcError = -1,
/// <summary>
/// 默认状态(校验未完成)
/// </summary>
None = 0,
/// <summary>
/// 验证成功
/// </summary>
Succeed = 1,
}
}
@@ -11,7 +11,7 @@ namespace YooAsset
public static VerifyCacheFilesOperation CreateOperation(CacheManager cache, List<VerifyCacheFileElement> elements)
{
#if UNITY_WEBGL
var operation = new VerifyCacheFilesWithoutThreadOperation(cache, elements);
var operation = new VerifyCacheFilesWithoutThreadOperation(cache, elements);
#else
var operation = new VerifyCacheFilesWithThreadOperation(cache, elements);
#endif
@@ -13,7 +13,7 @@ namespace YooAsset
public static VerifyTempFileOperation CreateOperation(VerifyTempFileElement element)
{
#if UNITY_WEBGL
var operation = new VerifyTempFileWithoutThreadOperation(element);
var operation = new VerifyTempFileWithoutThreadOperation(element);
#else
var operation = new VerifyTempFileWithThreadOperation(element);
#endif
@@ -11,17 +11,17 @@ namespace YooAsset
#if UNITY_EDITOR
return StringUtility.Format("file:///{0}", path);
#elif UNITY_WEBGL
return path;
return path;
#elif UNITY_IPHONE
return StringUtility.Format("file://{0}", path);
return StringUtility.Format("file://{0}", path);
#elif UNITY_ANDROID
return path;
return path;
#elif UNITY_STANDALONE_OSX
return new System.Uri(path).ToString();
return new System.Uri(path).ToString();
#elif UNITY_STANDALONE
return StringUtility.Format("file:///{0}", path);
return StringUtility.Format("file:///{0}", path);
#else
return path;
return path;
#endif
}
}
@@ -68,9 +68,9 @@ namespace YooAsset
projectPath = PathUtility.RegularPath(projectPath);
return PathUtility.Combine(projectPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
#elif UNITY_STANDALONE
return PathUtility.Combine(UnityEngine.Application.dataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
return PathUtility.Combine(UnityEngine.Application.dataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
#else
return PathUtility.Combine(UnityEngine.Application.persistentDataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
return PathUtility.Combine(UnityEngine.Application.persistentDataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
#endif
}