| | |
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 限时抢购
|
| | | /// </summary>
|
| | | /// <param name="package"></param>
|
| | | public void UpdateFlashRushToBuy(HAA11_tagMCSpringSaleInfo package)
|
| | | {
|
| | | OperationBase operationBase = null;
|
| | | operationDict.TryGetValue(Operation.FlashRushToBuy, out operationBase);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(Operation.FlashRushToBuy);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operationBase == null)
|
| | | {
|
| | | operationBase = new OperationFlashRushToBuy();
|
| | | operationDict.Add(Operation.FlashRushToBuy, operationBase);
|
| | | }
|
| | | OperationFlashRushToBuy operation = operationBase as OperationFlashRushToBuy;
|
| | | operation.Reset();
|
| | | operation.limitLv = package.LimitLV;
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.dayReset = package.IsDayReset == 1;
|
| | | operation.inAdvanceMinute = package.AdvanceMinutes;
|
| | | for (int i = 0; i < package.ActivityTimeCount; i++)
|
| | | {
|
| | | operation.times.Add(ParseOperationTime(package.ActivityTime[i].StartTime,
|
| | | package.ActivityTime[i].EndtTime));
|
| | | }
|
| | | operation.ParsePackage(package);
|
| | | if (operationTimeUpdateEvent != null)
|
| | | {
|
| | | operationTimeUpdateEvent(Operation.FlashRushToBuy);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 限时礼包
|
| | | /// </summary>
|
| | | /// <param name="package"></param>
|
| | |
| | | {
|
| | | MultipleExp,
|
| | | ConsumeRebate,
|
| | | FlashSale,
|
| | | FlashSale,//限时特惠
|
| | | BossReborn,
|
| | | GiftPackage,
|
| | | FairyCeremony, //仙界盛典
|
| | | MultipRealmPoint, //N倍修行点
|
| | | FlashRushToBuy, //限时抢购
|
| | | max,
|
| | | }
|
| | | }
|