using AlicizaX.Event.Runtime;
using AlicizaX.Runtime;
namespace AlicizaX.Resource.Runtime
{
///
/// 补丁流程步骤改变
///
[UnityEngine.Scripting.Preserve]
public sealed class AssetPatchStatesChangeEventArgs : GameEventArgs
{
public override void Clear()
{
CurrentStates = EPatchStates.CreateDownloader;
}
public static readonly string EventId = typeof(AssetPatchStatesChangeEventArgs).FullName;
public override string Id
{
get { return EventId; }
}
///
/// 当前步骤
///
public EPatchStates CurrentStates { get; private set; }
///
/// 创建补丁流程步骤改变
///
/// 包名称
/// 当前步骤
///
public static AssetPatchStatesChangeEventArgs Create(EPatchStates currentStates)
{
var assetPatchStatesChange = ReferencePool.Acquire();
assetPatchStatesChange.CurrentStates = currentStates;
return assetPatchStatesChange;
}
}
}