using AlicizaX.Event.Runtime;
using AlicizaX.Runtime;
namespace AlicizaX.Resource.Runtime
{
///
/// 资源版本号更新失败
///
[UnityEngine.Scripting.Preserve]
public sealed class AssetStaticVersionUpdateFailedEventArgs : GameEventArgs
{
public override void Clear()
{
Error = null;
}
///
/// 资源版本号更新失败事件编号
///
public static readonly string EventId = typeof(AssetStaticVersionUpdateFailedEventArgs).FullName;
public override string Id
{
get { return EventId; }
}
///
/// 错误信息
///
public string Error { get; private set; }
///
/// 创建资源版本号更新失败
///
/// 包名称
///
///
public static AssetStaticVersionUpdateFailedEventArgs Create(string error)
{
var assetStaticVersionUpdateFailed = ReferencePool.Acquire();
assetStaticVersionUpdateFailed.Error = error;
return assetStaticVersionUpdateFailed;
}
}
}