//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework; using GameFramework.Event; namespace UnityGameFramework.Runtime { /// /// 资源校验失败事件。 /// public sealed class ResourceVerifyFailureEventArgs : GameEventArgs { /// /// 资源校验失败事件编号。 /// public static readonly int EventId = typeof(ResourceVerifyFailureEventArgs).GetHashCode(); /// /// 初始化资源校验失败事件的新实例。 /// public ResourceVerifyFailureEventArgs() { Name = null; } /// /// 获取资源校验失败事件编号。 /// public override int Id { get { return EventId; } } /// /// 获取资源名称。 /// public string Name { get; private set; } /// /// 创建资源校验失败事件。 /// /// 内部事件。 /// 创建的资源校验失败事件。 public static ResourceVerifyFailureEventArgs Create(GameFramework.Resource.ResourceVerifyFailureEventArgs e) { ResourceVerifyFailureEventArgs resourceVerifyFailureEventArgs = ReferencePool.Acquire(); resourceVerifyFailureEventArgs.Name = e.Name; return resourceVerifyFailureEventArgs; } /// /// 清理资源校验失败事件。 /// public override void Clear() { Name = null; } } }