| | |
| | | operationTimeUpdateEvent?.Invoke(opreationType);
|
| | | }
|
| | |
|
| | | public void UpdateActTotalRechargeInfo(HAA1D_tagSCActTotalRechargeInfo package)
|
| | | {
|
| | | OperationBase operationBase = null;
|
| | | operationDict.TryGetValue(OperationType.TotalRecharge, out operationBase);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(OperationType.TotalRecharge);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operationBase == null)
|
| | | {
|
| | | operationBase = new OperationTotalRechargeInfo();
|
| | | operationDict.Add(OperationType.TotalRecharge, operationBase);
|
| | | }
|
| | | OperationTotalRechargeInfo operation = operationBase as OperationTotalRechargeInfo;
|
| | | operation.Reset();
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.ActNum = package.ActNum;
|
| | | operation.CfgID = package.CfgID;
|
| | | |
| | | var config = ActTotalRechargeConfig.Get(package.CfgID);
|
| | | if (config == null)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("LoadConfigErr");
|
| | | return;
|
| | | }
|
| | |
|
| | | if (operationTimeUpdateEvent != null)
|
| | | {
|
| | | operationTimeUpdateEvent(OperationType.TotalRecharge);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void UpdateActTotDayRechargeInfo(HAA1B_tagSCActTotDayRechargeInfo package)
|
| | | {
|
| | | OperationBase operationBase = null;
|
| | | operationDict.TryGetValue(OperationType.TotDayRecharge, out operationBase);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(OperationType.TotDayRecharge);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operationBase == null)
|
| | | {
|
| | | operationBase = new OperationTotDayRechargeInfo();
|
| | | operationDict.Add(OperationType.TotDayRecharge, operationBase);
|
| | | }
|
| | | OperationTotDayRechargeInfo operation = operationBase as OperationTotDayRechargeInfo;
|
| | | operation.Reset();
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.ActNum = package.ActNum;
|
| | | operation.CfgID = package.CfgID;
|
| | |
|
| | | var config = ActTotalRechargeConfig.Get(package.CfgID);
|
| | | if (config == null)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("LoadConfigErr");
|
| | | return;
|
| | | }
|
| | | |
| | | operation.dayReset = config.IsDayReset == 1;
|
| | | operationTimeUpdateEvent?.Invoke(OperationType.TotDayRecharge);
|
| | | }
|
| | | }
|
| | |
|
| | | // public void UpdateActYunShiInfo(HAA87_tagMCActYunshiInfo package)
|
| | | // {
|
| | | // Operation operationType = Operation.default48;
|
| | |
| | | TimeRush = 1, //日期型活动 - 轮回殿
|
| | | HeroDebut = 2, //日期型活动 - 武将登场
|
| | | HeroReturn = 3, //日期型活动 - 武将返场
|
| | | TotalRecharge = 4,//累充活动
|
| | | TotDayRecharge = 5, //累充天活动
|
| | | max,
|
| | | } |