mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-26 18:50:10 +00:00
Update AssetInfo.cs
Add Address filed.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public class AssetInfo
|
public class AssetInfo
|
||||||
@@ -41,11 +40,16 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal string Error { private set; get; }
|
internal string Error { private set; get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 可寻址地址
|
||||||
|
/// </summary>
|
||||||
|
public string Address { private set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源路径
|
/// 资源路径
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string AssetPath { private set; get; }
|
public string AssetPath { private set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源类型
|
/// 资源类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -63,6 +67,7 @@ namespace YooAsset
|
|||||||
|
|
||||||
_patchAsset = patchAsset;
|
_patchAsset = patchAsset;
|
||||||
AssetType = assetType;
|
AssetType = assetType;
|
||||||
|
Address = patchAsset.Address;
|
||||||
AssetPath = patchAsset.AssetPath;
|
AssetPath = patchAsset.AssetPath;
|
||||||
Error = string.Empty;
|
Error = string.Empty;
|
||||||
}
|
}
|
||||||
@@ -73,6 +78,7 @@ namespace YooAsset
|
|||||||
|
|
||||||
_patchAsset = patchAsset;
|
_patchAsset = patchAsset;
|
||||||
AssetType = null;
|
AssetType = null;
|
||||||
|
Address = patchAsset.Address;
|
||||||
AssetPath = patchAsset.AssetPath;
|
AssetPath = patchAsset.AssetPath;
|
||||||
Error = string.Empty;
|
Error = string.Empty;
|
||||||
}
|
}
|
||||||
@@ -80,6 +86,7 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
_patchAsset = null;
|
_patchAsset = null;
|
||||||
AssetType = null;
|
AssetType = null;
|
||||||
|
Address = string.Empty;
|
||||||
AssetPath = string.Empty;
|
AssetPath = string.Empty;
|
||||||
Error = error;
|
Error = error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user