Пример #1
0
        /// <summary>
        /// 创建下载更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的下载更新事件。</returns>
        public static DownloadUpdateEventArgs Create(GameFramework.Download.DownloadUpdateEventArgs e)
        {
            DownloadUpdateEventArgs downloadUpdateEventArgs = ReferencePool.Acquire <DownloadUpdateEventArgs>();

            downloadUpdateEventArgs.SerialId      = e.SerialId;
            downloadUpdateEventArgs.DownloadPath  = e.DownloadPath;
            downloadUpdateEventArgs.DownloadUri   = e.DownloadUri;
            downloadUpdateEventArgs.CurrentLength = e.CurrentLength;
            downloadUpdateEventArgs.UserData      = e.UserData;
            return(downloadUpdateEventArgs);
        }
Пример #2
0
 private void OnDownloadUpdate(object sender, GameFramework.Download.DownloadUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, DownloadUpdateEventArgs.Create(e));
 }