| | |
| | | public void UpdateActLunhuidianInfo(HAA88_tagMCActLunhuidianInfo package)
|
| | | {
|
| | | OperationBase operationBase = null;
|
| | | operationDict.TryGetValue(OperationType.default47, out operationBase);
|
| | | operationDict.TryGetValue(OperationType.TimeRush, out operationBase);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(OperationType.default47);
|
| | | ForceStopOperation(OperationType.TimeRush);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operationBase == null)
|
| | | {
|
| | | operationBase = new OperationCycleHall();
|
| | | operationDict.Add(OperationType.default47, operationBase);
|
| | | operationDict.Add(OperationType.TimeRush, operationBase);
|
| | | }
|
| | | OperationCycleHall operation = operationBase as OperationCycleHall;
|
| | | operation.Reset();
|
| | |
| | | operation.ParseCycleHallInfo(package);
|
| | | if (operationTimeUpdateEvent != null)
|
| | | {
|
| | | operationTimeUpdateEvent(OperationType.default47);
|
| | | operationTimeUpdateEvent(OperationType.TimeRush);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void UpdateActHeroAppearInfo(HAA21_tagSCActHeroAppearInfo package)
|
| | | {
|
| | | var opreationType = OperationType.HeroDebut;
|
| | | switch (package.ActNum)
|
| | | {
|
| | | case 10:
|
| | | opreationType = OperationType.HeroDebut;
|
| | | break;
|
| | | // case 11:
|
| | | // opreationType = OperationType.HeroBack;
|
| | | // break;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(opreationType);
|
| | | return;
|
| | | }
|
| | |
|
| | | if (!operationDict.TryGetValue(opreationType, out OperationBase operationBase))
|
| | | {
|
| | | operationBase = new OperationHeroAppearInfo();
|
| | | operationDict.Add(opreationType, operationBase);
|
| | | }
|
| | | OperationHeroAppearInfo operation = operationBase as OperationHeroAppearInfo;
|
| | | operation.Reset();
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.ActType = package.ActType;
|
| | | operation.CfgID = package.CfgID;
|
| | |
|
| | | operationTimeUpdateEvent?.Invoke(opreationType);
|
| | | }
|
| | |
|
| | | // public void UpdateActYunShiInfo(HAA87_tagMCActYunshiInfo package)
|
| | |
| | |
|
| | | public enum OperationType
|
| | | {
|
| | |
|
| | |
|
| | | MultipleExp,
|
| | | ConsumeRebate,
|
| | | FlashSale,//限时特惠
|
| | | BossReborn,
|
| | | GiftPackage,
|
| | | FairyCeremony, //仙界盛典
|
| | | MultipRealmPoint, //N倍修行点
|
| | | FlashRushToBuy, //限时抢购
|
| | | WishingWellInfo, //许愿池
|
| | | AccumulateRecharge,//累计充值,单日
|
| | | LoginReward,//登录奖励
|
| | | FestivalRedpack,//节日红包
|
| | | NewYearFairyCeremony, //春节仙界盛典
|
| | | SpringFestival,//春节巡礼
|
| | | OpenServiceAchievement,//七日巡礼
|
| | | LuckyTreasure,//幸运鉴宝
|
| | | MultiRecharge, //仙玉充值返利 (首充双倍)
|
| | | CZBMGift, // 成长必买礼包
|
| | | DaysAccumulateRecharge, //累计充值,多日
|
| | | CollectWords, //收集文字
|
| | | HolidayLogin, //节日登录
|
| | | HolidayWish, //节日祝福灯笼
|
| | | HolidayMultiRecharge,//节日祝福的多日累计充值 包含任意充值界面和多日累充界面
|
| | | HolidayTravel, //节日游历
|
| | | HolidayAccumulateRecharge, //节日-单日的累积充值
|
| | | HolidayCollectWords, //节日-集字
|
| | | HolidayGiftPackage, //节日祝福-限时礼包
|
| | | HolidayFlashRushToBuy, //节日-限时抢购
|
| | | HolidayFlashSale, //节日祝福-限时特惠
|
| | | HolidayConsumeRebate, //节日祝福-消费返利
|
| | |
|
| | | //后续IL开发添加预设
|
| | | default1, // 连续多日累充
|
| | | default2,
|
| | | default3, // 节日-垃圾分类
|
| | | default4, // 节日-翻牌
|
| | | default5,
|
| | | default6,
|
| | | default7, // 精彩活动-跨服充值
|
| | | default8, // 合服-福利(多日累充1档)
|
| | | default9, // 合服-转盘
|
| | | default10, // 合服-集字狂欢
|
| | | default11, // 合服-坐骑盛宴
|
| | | default12, // 合服-超值限购
|
| | | default13, // 合服-限时礼包
|
| | | default14,
|
| | | default15,
|
| | | default16,
|
| | | default17,
|
| | | default18, // 幸运云购
|
| | | default19,
|
| | | default20, //节日指定累计充值额度,和节日任意充值独立两个界面
|
| | | default21,
|
| | | default22, //天帝礼包
|
| | | default23,
|
| | | default24,
|
| | | default25, //买1送5
|
| | | default26,
|
| | | default27, //日期型活动- boss历练活动
|
| | | default28, //精彩活动-单笔充值
|
| | | default29, //日期型活动- 登录,可补签
|
| | | default30, //日期型活动- 任务
|
| | | default31, //日期型活动- 礼包,可累计购买次数领取
|
| | | default32, //福缘- 长久累充(几个月或更长) 独立界面
|
| | | default33, //日期型活动- boss 历练活动(跨服) 必须和活动default27一起使用
|
| | | default34, //日期型活动- 仙盟充值互助,特殊:允许多个活动同时开启
|
| | | default35, //自选礼包
|
| | | default36, //日期型活动- 秘境寻宝(类仙匣) 主活动
|
| | | default37, //日期型活动- 秘境寻宝(类仙匣) 跨服
|
| | | default38, //日期型活动- 自选礼包 + 商店
|
| | | default39, //日期型活动- 骑宠培养本服
|
| | | default40, //日期型活动- 骑宠培养跨服
|
| | | default41, //日期型活动- 古宝养成本服
|
| | | default42, //日期型活动- 古宝养成跨服
|
| | | default43, ////日期型活动- 任务环
|
| | | default44, //日期型活动 - 仙缘登陆,可补签
|
| | | default45, //日期型活动 - 仙缘任务
|
| | | default46, //日期型活动 - 仙缘礼包
|
| | | default47, //日期型活动 - 轮回殿
|
| | | default48, //日期型活动 - 运势寻宝
|
| | | default49, //日期型活动 - 运势任务
|
| | | default50, //日期型活动 - 运势礼包
|
| | | default51, //日期型活动 - 仙匠大会炼器
|
| | | default52, //日期型活动 - 仙匠大会礼包
|
| | | default53, //日期型活动 - 仙盟攻城战 跨服
|
| | | default54, //日期型活动 - 仙盟攻城战仙盟协助和礼包
|
| | | TimeRush = 1, //日期型活动 - 轮回殿
|
| | | HeroDebut = 2, //日期型活动 - 武将登场
|
| | | max,
|
| | | } |