/// <summary>
        /// 创建下载开始事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的下载开始事件。</returns>
        public static DownloadStartEventArgs Create(GameFramework.Download.DownloadStartEventArgs e)
        {
            DownloadStartEventArgs downloadStartEventArgs = ReferencePool.Acquire <DownloadStartEventArgs>();

            downloadStartEventArgs.SerialId      = e.SerialId;
            downloadStartEventArgs.DownloadPath  = e.DownloadPath;
            downloadStartEventArgs.DownloadUri   = e.DownloadUri;
            downloadStartEventArgs.CurrentLength = e.CurrentLength;
            downloadStartEventArgs.UserData      = e.UserData;
            return(downloadStartEventArgs);
        }
Example #2
0
 private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e)
 {
     m_EventComponent.Fire(this, DownloadStartEventArgs.Create(e));
 }