/// <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);
        }
Esempio n. 2
0
 private void OnResourceUpdateChanged(object sender, GameFramework.Resource.ResourceUpdateChangedEventArgs e)
 {
     m_EventComponent.Fire(this, ResourceUpdateChangedEventArgs.Create(e));
 }