/// <summary> /// 初始化资源更新改变事件的新实例。 /// </summary> /// <param name="e">内部事件。</param> public ResourceUpdateChangedEventArgs(GameFramework.Resource.ResourceUpdateChangedEventArgs e) { Name = e.Name; DownloadPath = e.DownloadPath; DownloadUri = e.DownloadUri; CurrentLength = e.CurrentLength; ZipLength = e.ZipLength; }
/// <summary> /// 创建资源更新改变事件。 /// </summary> /// <param name="e">内部事件。</param> /// <returns>创建的资源更新改变事件。</returns> public static ResourceUpdateChangedEventArgs Create(GameFramework.Resource.ResourceUpdateChangedEventArgs e) { ResourceUpdateChangedEventArgs resourceUpdateChangedEventArgs = ReferencePool.Acquire <ResourceUpdateChangedEventArgs>(); resourceUpdateChangedEventArgs.Name = e.Name; resourceUpdateChangedEventArgs.DownloadPath = e.DownloadPath; resourceUpdateChangedEventArgs.DownloadUri = e.DownloadUri; resourceUpdateChangedEventArgs.CurrentLength = e.CurrentLength; resourceUpdateChangedEventArgs.ZipLength = e.ZipLength; return(resourceUpdateChangedEventArgs); }