49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
|
|
using AlicizaX.Event.Runtime;
|
|||
|
|
using AlicizaX.Runtime;
|
|||
|
|
|
|||
|
|
namespace AlicizaX.Resource.Runtime
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 补丁流程步骤改变
|
|||
|
|
/// </summary>
|
|||
|
|
[UnityEngine.Scripting.Preserve]
|
|||
|
|
public sealed class AssetPatchStatesChangeEventArgs : GameEventArgs
|
|||
|
|
{
|
|||
|
|
public override void Clear()
|
|||
|
|
{
|
|||
|
|
PackageName = null;
|
|||
|
|
CurrentStates = EPatchStates.CreateDownloader;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public static readonly string EventId = typeof(AssetPatchStatesChangeEventArgs).FullName;
|
|||
|
|
|
|||
|
|
public override string Id
|
|||
|
|
{
|
|||
|
|
get { return EventId; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 包名称
|
|||
|
|
/// </summary>
|
|||
|
|
public string PackageName { get; private set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 当前步骤
|
|||
|
|
/// </summary>
|
|||
|
|
public EPatchStates CurrentStates { get; private set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 创建补丁流程步骤改变
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="packageName">包名称</param>
|
|||
|
|
/// <param name="currentStates">当前步骤</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
public static AssetPatchStatesChangeEventArgs Create(string packageName, EPatchStates currentStates)
|
|||
|
|
{
|
|||
|
|
var assetPatchStatesChange = ReferencePool.Acquire<AssetPatchStatesChangeEventArgs>();
|
|||
|
|
assetPatchStatesChange.PackageName = packageName;
|
|||
|
|
assetPatchStatesChange.CurrentStates = currentStates;
|
|||
|
|
return assetPatchStatesChange;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|