/// <summary>
        /// 创建加载数据表更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的加载数据表更新事件。</returns>
        public static LoadDataTableUpdateEventArgs Create(ReadDataUpdateEventArgs e)
        {
            LoadDataTableUpdateEventArgs loadDataTableUpdateEventArgs = ReferencePool.Acquire <LoadDataTableUpdateEventArgs>();

            loadDataTableUpdateEventArgs.DataTableAssetName = e.DataAssetName;
            loadDataTableUpdateEventArgs.Progress           = e.Progress;
            loadDataTableUpdateEventArgs.UserData           = e.UserData;
            return(loadDataTableUpdateEventArgs);
        }
        /// <summary>
        /// 创建加载数据表更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的加载数据表更新事件。</returns>
        public static LoadDataTableUpdateEventArgs Create(GameFramework.DataTable.LoadDataTableUpdateEventArgs e)
        {
            LoadDataTableInfo            loadDataTableInfo            = (LoadDataTableInfo)e.UserData;
            LoadDataTableUpdateEventArgs loadDataTableUpdateEventArgs = ReferencePool.Acquire <LoadDataTableUpdateEventArgs>();

            loadDataTableUpdateEventArgs.DataRowType        = loadDataTableInfo.DataRowType;
            loadDataTableUpdateEventArgs.DataTableName      = loadDataTableInfo.DataTableName;
            loadDataTableUpdateEventArgs.DataTableAssetName = e.DataTableAssetName;
            loadDataTableUpdateEventArgs.Progress           = e.Progress;
            loadDataTableUpdateEventArgs.UserData           = loadDataTableInfo.UserData;
            return(loadDataTableUpdateEventArgs);
        }
Esempio n. 3
0
 private void OnLoadDataTableUpdate(object sender, GameFramework.DataTable.LoadDataTableUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, LoadDataTableUpdateEventArgs.Create(e));
 }
 private void OnReadDataUpdate(object sender, ReadDataUpdateEventArgs e)
 {
     m_EventComponent.Raise(this, LoadDataTableUpdateEventArgs.Create(e));
 }