コード例 #1
0
        public override void OnEnter(BaseFlow oldFlow)
        {
            base.OnEnter(oldFlow);

            //转移过资源,xml就从storePath取。否则从包内取
            ChangeLocalXmlPath(HasTransedResource());
        }
コード例 #2
0
 public override void OnEnter(BaseFlow oldFlow)
 {
     base.OnEnter(oldFlow);
     _localXml        = LocalXml;
     _currentData     = CurrentRemoteData;
     _mapFileDataList = MapFileDataListForDownload;
     UpdateSystem.Download.Download.MutiDownloadedSize = 0;
     _totalSize = 0;
 }
コード例 #3
0
ファイル: BaseFlow.cs プロジェクト: tangxiaohui/Koer
        /// <summary>
        /// 做数据拷贝,将上一个流程的数据转到当前流程
        /// </summary>
        /// <param name="oldFlow"></param>
        public virtual void OnEnter(BaseFlow oldFlow)
        {
            if (!_initialized)
            {
                //Inititalize();
            }

            if (_perFlowActionCall != null)
            {
                _perFlowActionCall(null);
            }

            if (oldFlow == null)
            {
                return;
            }

            //数据拷贝
            if (oldFlow.LocalXml != null)
            {
                LocalXml = oldFlow.LocalXml;
            }
            if (oldFlow.RemoteXml != null)
            {
                RemoteXml = oldFlow.RemoteXml;
            }
            if (oldFlow.CurrentRemoteData != null)
            {
                CurrentRemoteData = oldFlow.CurrentRemoteData;
            }
            if (!string.IsNullOrEmpty(oldFlow.LocalBaseResVersion))
            {
                LocalBaseResVersion = oldFlow.LocalBaseResVersion;
            }
            if (oldFlow.MapFileDataListForDownload != null)
            {
                MapFileDataListForDownload = oldFlow.MapFileDataListForDownload;
            }
            if (oldFlow.ForceCheckMd5List != null)
            {
                ForceCheckMd5List = oldFlow.ForceCheckMd5List;
            }

            LastFlowResult = oldFlow.CurrentFlowResult;
        }
コード例 #4
0
 public override void OnEnter(BaseFlow oldFlow)
 {
     base.OnEnter(oldFlow);
     _localBaseResVersion = LocalBaseResVersion;
     _currentData         = CurrentRemoteData;
 }
コード例 #5
0
 public override void OnEnter(BaseFlow oldFlow)
 {
     base.OnEnter(oldFlow);
     _localXml    = LocalXml;
     _currentData = CurrentRemoteData;
 }
コード例 #6
0
 public override void OnEnter(BaseFlow oldFlow)
 {
     base.OnEnter(oldFlow);
     this._currentData = base.CurrentRemoteData;
 }
コード例 #7
0
ファイル: FlowFinish.cs プロジェクト: tangxiaohui/Koer
 public override void OnEnter(BaseFlow oldFlow)
 {
     base.OnEnter(oldFlow);
     UseDownload = false;
 }