/// <summary> /// 创建资源应用成功事件。 /// </summary> /// <param name="name">资源名称。</param> /// <param name="applyPath">资源应用后存放路径。</param> /// <param name="resourcePackPath">资源包路径。</param> /// <param name="length">资源大小。</param> /// <param name="zipLength">压缩后大小。</param> /// <returns>创建的资源应用成功事件。</returns> public static ResourceApplySuccessEventArgs Create(string name, string applyPath, string resourcePackPath, int length, int zipLength) { ResourceApplySuccessEventArgs resourceApplySuccessEventArgs = ReferencePool.Acquire <ResourceApplySuccessEventArgs>(); resourceApplySuccessEventArgs.Name = name; resourceApplySuccessEventArgs.ApplyPath = applyPath; resourceApplySuccessEventArgs.ResourcePackPath = resourcePackPath; resourceApplySuccessEventArgs.Length = length; resourceApplySuccessEventArgs.ZipLength = zipLength; return(resourceApplySuccessEventArgs); }
private void OnResourceApplySuccess(object sender, IResourceApplySuccessEventArgs e) { EventComponent.This.Fire(this, ResourceApplySuccessEventArgs.Create(e)); }