| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 登录奖励
|
| | | /// </summary>
|
| | | /// <param name="package"></param>
|
| | | public void RefreshLoginReward(HAA0C_tagMCActLoginAwardInfo package)
|
| | | {
|
| | | OperationBase operation = null;
|
| | | operationDict.TryGetValue(Operation.LoginReward, out operation);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(Operation.LoginReward);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operation == null)
|
| | | {
|
| | | operation = new OperationMultipleRealmPoint();
|
| | | operationDict.Add(Operation.LoginReward, operation);
|
| | | }
|
| | | operation.Reset();
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.limitLv = package.LimitLV;
|
| | | operation.dayReset = package.IsDayReset == 1;
|
| | | operation.resetType = package.ResetType;
|
| | | operation.inAdvanceMinute = package.AdvanceMinutes;
|
| | | if (operationTimeUpdateEvent != null)
|
| | | {
|
| | | operationTimeUpdateEvent(Operation.LoginReward);
|
| | | }
|
| | | }
|
| | | }
|
| | | void ForceStopOperation(Operation operationType)
|
| | | {
|
| | | if (operationDict.ContainsKey(operationType))
|
| | |
| | | FlashRushToBuy, //限时抢购
|
| | | WishingWellInfo, //许愿池
|
| | | AccumulateRecharge,//累计充值
|
| | | LoginReward,//登录奖励
|
| | | max,
|
| | | }
|
| | | }
|