| | |
| | | |
| | | private int GiftAwardRecord; //领取状态 |
| | | |
| | | public const int activityType = (int)OpenServerActivityCenter.ActivityType.AT_Activity2; |
| | | public const int activityType = (int)OpenServerActivityCenter.ActivityType.AT_DateActivity; |
| | | public const int activityID = (int)NewDayActivityID.CustomizedGiftWin; |
| | | public static OperationType operaType = OperationType.default35; |
| | | public static OperationType operaType = OperationType.CustomizedGift; |
| | | |
| | | public int actNum; //对应界面 |
| | | public event Action UpdateRechargeGiftActEvent; |
| | |
| | | public enum ActivityType
|
| | | {
|
| | | AT_JCHD = 0, //精彩活动
|
| | | AT_JRZF, //节日祝福
|
| | | AT_HFHD, //合服活动
|
| | | AT_Activity1, //预备活动1
|
| | | AT_Activity2, //日期型活动- 按日期开放的排行榜系列活动相关 id从200开始(与其他活动区分,虽然id重复并没有关系), 类同节日活动
|
| | | AT_Activity3, //预备活动3
|
| | | //后续IL开发添加预设
|
| | | default1,
|
| | | default2,
|
| | | default3,
|
| | | default4,
|
| | | default5,
|
| | | default6,
|
| | | default7,
|
| | | default8,
|
| | | default9,
|
| | | default10,
|
| | | AT_DateActivity, //日期型活动- 按日期开放的排行榜系列活动相关 id从200开始(与其他活动区分,虽然id重复并没有关系), 类同节日活动
|
| | | }
|
| | |
|
| | | public OpenServerActivityCenter()
|
| | |
| | | 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 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, //日期型活动 - 仙盟攻城战仙盟协助和礼包
|
| | | CustomizedGift, //自选礼包
|
| | | TimeRush, //日期型活动 - 轮回殿
|
| | | max,
|
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public const int activityType = (int)OpenServerActivityCenter.ActivityType.AT_Activity2; |
| | | public const int activityType = (int)OpenServerActivityCenter.ActivityType.AT_DateActivity; |
| | | public const int activityID = (int)NewDayActivityID.TimeRushAct; |
| | | public int actNum = 10; |
| | | public static OperationType operaType = OperationType.default47; |
| | | public static OperationType operaType = OperationType.TimeRush; |
| | | public Redpoint redPoint = new Redpoint(MainRedDot.TimeRushRepoint); |
| | | |
| | | public bool IsOpen => OperationTimeHepler.Instance.SatisfyOpenCondition(operaType); |
| | |
| | | |
| | | private void OperationTimeUpdateEvent(OperationType operation) |
| | | { |
| | | if (operation == OperationType.default47) |
| | | if (operation == OperationType.TimeRush) |
| | | { |
| | | var list = manager.GetTabIDList(); |
| | | if (list.IsNullOrEmpty()) |
| | |
| | | //OpenServerActivityCenter.ActivityType.AT_Activity2的活动 历史原因不要用100 |
| | | public enum NewDayActivityID |
| | | { |
| | | BossTrial = 200, //boss凭证 |
| | | LoginAct = 201, //登录活动 |
| | | MissionAct = 202, //任务活动 |
| | | RechargeGiftAct = 203, //充值礼包(充值次数奖励) |
| | | CrossBossTrial = 204, //跨服boss凭证 必须和BossTrial 一起 |
| | | FamilyRechargeConnAct = 205, //仙盟协助 |
| | | CustomizedGiftWin = 206, //自选礼包 |
| | | SecretPlaceXB = 207, //秘境寻宝 |
| | | SecretPlaceXBCross = 208, //秘境寻宝 跨服 |
| | | RechargeGiftAct31 = 209, //自选充值 + 商店礼包 |
| | | PetHorseAct = 210, //宠物坐骑活动 |
| | | PetHorseActCross = 211, //宠物坐骑活动 跨服 |
| | | TreasurePavilionAct = 212, //古宝活动 |
| | | TreasurePavilionActCross = 213, //古宝活动 跨服 |
| | | FairyAffinityLoginAct = 214, //仙缘登陆活动 |
| | | FairyAffinityMissionAct = 215, //仙缘任务活动 |
| | | FairyAffinityRechargeGiftAct = 216, //仙缘礼包活动 |
| | | TimeRushAct = 217, //轮回殿活动 |
| | | YunShiXBAct = 218, //运势寻宝活动 |
| | | YunShiMissionAct = 219, //运势任务活动 |
| | | YunShiRechargeGiftAct = 220, //运势礼包活动 |
| | | LianQiActCross = 221, //仙匠大会活动 跨服 |
| | | LianQiRechargeGiftActCross = 222, //仙匠大会礼包活动 跨服 |
| | | CustomizedGiftWin = 200, //自选礼包 |
| | | TimeRushAct = 201, //轮回殿(武将冲刺) |
| | | } |
| | | |
| | | //仙玉购买的二次确认框类型 |