6076 子 【开发】【1.5.200】新增一个仙界盛典(特殊版本)活动 / 【前端】【1.5.200】新增一个仙界盛典(特殊版本)活动
| | |
| | | Register(typeof(HAC09_tagGCFairyCeremonyInfo), typeof(DTCAC09_tagGCFairyCeremonyInfo));
|
| | | Register(typeof(HAA14_tagMCXJSDRecharge), typeof(DTCAA14_tagMCXJSDRecharge));
|
| | | Register(typeof(HAA15_tagMCAllPeoplePartyInfo), typeof(DTCAA15_tagMCAllPeoplePartyInfo));
|
| | | Register(typeof(HAC0B_tagGCNewFairyCeremonyInfo), typeof(DTCAC0B_tagGCNewFairyCeremonyInfo));
|
| | | Register(typeof(HAA22_tagMCNewXJSDRecharge), typeof(DTCAA22_tagMCNewXJSDRecharge));
|
| | | Register(typeof(HAA23_tagMCNewAllPeoplePartyInfo), typeof(DTCAA23_tagMCNewAllPeoplePartyInfo));
|
| | | #endregion
|
| | |
|
| | | #region 神兽
|
| | |
| | | OpenServerRecharge = 21,
|
| | | OpenServerPet = 22,
|
| | | JadeDynastyTower=23,//诛仙塔排行榜
|
| | | Def_BT_NewFCCostGold = 24, //消费排行榜(新仙界盛典) 24
|
| | | }
|
| | |
|
| | | public class RankData
|
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | |
|
| | | // AA 22 新仙界盛典充值大礼 #tagMCNewXJSDRecharge
|
| | |
|
| | |
|
| | |
|
| | | public class DTCAA22_tagMCNewXJSDRecharge : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HAA22_tagMCNewXJSDRecharge vNetData = vNetPack as HAA22_tagMCNewXJSDRecharge;
|
| | | var model = ModelCenter.Instance.GetModel<NewYearFairylandCeremonyModel>();
|
| | | model.GetServerRechargeInfo(vNetData);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e8bcbd5d6d737b04196d56af34ff8f19 |
| | | timeCreated: 1548645936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | |
|
| | | // AA 23 新仙界盛典全民来嗨玩家信息 #tagMCNewAllPeoplePartyInfo
|
| | |
|
| | |
|
| | |
|
| | | public class DTCAA23_tagMCNewAllPeoplePartyInfo : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HAA23_tagMCNewAllPeoplePartyInfo vNetData = vNetPack as HAA23_tagMCNewAllPeoplePartyInfo;
|
| | | var model = ModelCenter.Instance.GetModel<NewYearFairylandCeremonyModel>();
|
| | | model.GetServerPeopleInfo(vNetData);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b58ea3beec5473f40beee65664f5c52f |
| | | timeCreated: 1548645936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | |
|
| | | // AC 0B 新仙界盛典活动信息 #tagGCNewFairyCeremonyInfo
|
| | |
|
| | |
|
| | |
|
| | | public class DTCAC0B_tagGCNewFairyCeremonyInfo : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HAC0B_tagGCNewFairyCeremonyInfo vNetData = vNetPack as HAC0B_tagGCNewFairyCeremonyInfo;
|
| | | var model = ModelCenter.Instance.GetModel<NewYearFairylandCeremonyModel>();
|
| | | model.GetServerActiveInfo(vNetData);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b35fcff20e831be44b8cd523fd6dd60d |
| | | timeCreated: 1548645936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AA 22 新仙界盛典充值大礼 #tagMCNewXJSDRecharge
|
| | |
|
| | | public class HAA22_tagMCNewXJSDRecharge : GameNetPackBasic {
|
| | | public byte State; //0-不可领 1-可领 2-已领取
|
| | |
|
| | | public HAA22_tagMCNewXJSDRecharge () {
|
| | | _cmd = (ushort)0xAA22;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out State, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ece86af19cf032a488d22e51682d5ab6 |
| | | timeCreated: 1548645937 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AA 23 新仙界盛典全民来嗨玩家信息 #tagMCNewAllPeoplePartyInfo
|
| | |
|
| | | public class HAA23_tagMCNewAllPeoplePartyInfo : GameNetPackBasic {
|
| | | public uint CurPoint; //当前总点数
|
| | | public uint AwardRecord; //领奖记录 按奖励索引二进制位存储是否已领取
|
| | | public byte Count;
|
| | | public tagMCNewAllPeoplePartyCount[] BuyCountList; //活动完成次数信息
|
| | |
|
| | | public HAA23_tagMCNewAllPeoplePartyInfo () {
|
| | | _cmd = (ushort)0xAA23;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out CurPoint, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out AwardRecord, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out Count, vBytes, NetDataType.BYTE);
|
| | | BuyCountList = new tagMCNewAllPeoplePartyCount[Count];
|
| | | for (int i = 0; i < Count; i ++) {
|
| | | BuyCountList[i] = new tagMCNewAllPeoplePartyCount();
|
| | | TransBytes (out BuyCountList[i].ActID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out BuyCountList[i].CurTimes, vBytes, NetDataType.WORD);
|
| | | }
|
| | | }
|
| | |
|
| | | public struct tagMCNewAllPeoplePartyCount {
|
| | | public uint ActID; //活动ID
|
| | | public ushort CurTimes; //已完成次数
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5a952a9c068761b409b457f19e45960f |
| | | timeCreated: 1548645936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AC 0B 新仙界盛典活动信息 #tagGCNewFairyCeremonyInfo
|
| | |
|
| | | public class HAC0B_tagGCNewFairyCeremonyInfo : GameNetPackBasic {
|
| | | public string StartDate; // 开始日期 y-m-d
|
| | | public string EndtDate; // 结束日期 y-m-d
|
| | | public ushort WorldLV; // 世界等级
|
| | | public ushort LimitLV; // 限制等级
|
| | | public byte ResetType; // 重置类型 0-0点重置 1-5点重置
|
| | |
|
| | | public HAC0B_tagGCNewFairyCeremonyInfo () {
|
| | | _cmd = (ushort)0xAC0B;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out StartDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out EndtDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out WorldLV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out LimitLV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out ResetType, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2e9d907361017904abe277919823d31a |
| | | timeCreated: 1548645936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | |
|
| | | private void Init()
|
| | | {
|
| | | ceremonyModel.SendGetRankInfo(PlayerRankData.RankType.Def_BT_FCCostGold);
|
| | | ceremonyModel.SendGetRankInfo(PlayerRankData.RankType.Def_BT_NewFCCostGold);
|
| | | SetRankAward(firstItemlist,ceremonyModel.GetRankAwardByLv(1));
|
| | | SetRankAward(secondItemlist, ceremonyModel.GetRankAwardByLv(2));
|
| | | SetRankAward(thirdItemlist, ceremonyModel.GetRankAwardByLv(3));
|
| | |
| | | bool isGrid = playerPack.GetReaminGridCount(PackType.rptItem) - itemlist.Count >= 0 ? true : false;
|
| | | if (isGrid)
|
| | | {
|
| | | ceremonyModel.SendReceiveAward(GotServerRewardType.Def_RewardType_FCRecharge,0);
|
| | | ceremonyModel.SendReceiveAward(GotServerRewardType.Def_RewardType_NewFairyCRecharge, 0);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | #region 处理服务端数据
|
| | | public int worldLv { get; private set;}
|
| | | public void GetServerActiveInfo(HAC09_tagGCFairyCeremonyInfo info)
|
| | | public void GetServerActiveInfo(HAC0B_tagGCNewFairyCeremonyInfo info)
|
| | | {
|
| | | worldLv = info.WorldLV;
|
| | | OperationTimeHepler.Instance.RefreshFairyCeremonyInfo(info);
|
| | | OperationTimeHepler.Instance.RefreshNewYearFairyCeremonyInfo(info);
|
| | | }
|
| | |
|
| | | public Action RefreshRechargeStateAct;
|
| | | public void GetServerRechargeInfo(HAA14_tagMCXJSDRecharge info)
|
| | | public void GetServerRechargeInfo(HAA22_tagMCNewXJSDRecharge info)
|
| | | {
|
| | | switch(info.State)
|
| | | {
|
| | |
| | | public Action<int> RefreshHiPointAct;
|
| | | public Action RefreshHiAwardStateAct;
|
| | |
|
| | | public void GetServerPeopleInfo(HAA15_tagMCAllPeoplePartyInfo info)
|
| | | public void GetServerPeopleInfo(HAA23_tagMCNewAllPeoplePartyInfo info)
|
| | | {
|
| | | peopleAwardRecordDict.Clear();
|
| | | sumHiPoint = (int)info.CurPoint;
|
| | |
| | | bool isGrid = playerPack.GetReaminGridCount(PackType.rptItem) - itemlist.Count >= 0 ? true : false;
|
| | | if (isGrid)
|
| | | {
|
| | | ceremonyModel.SendReceiveAward(GotServerRewardType.Def_RewardType_FCParty, awardConfig.Index);
|
| | | ceremonyModel.SendReceiveAward(GotServerRewardType.Def_RewardType_NewFairyCParty, awardConfig.Index);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | /// 春节仙界盛典
|
| | | /// </summary>
|
| | | /// <param name="info"></param>
|
| | | public void RefreshNewYearFairyCeremonyInfo(HAC09_tagGCFairyCeremonyInfo package)
|
| | | public void RefreshNewYearFairyCeremonyInfo(HAC0B_tagGCNewFairyCeremonyInfo package)
|
| | | {
|
| | | OperationBase operation = null;
|
| | | operationDict.TryGetValue(Operation.NewYearFairyCeremony, out operation);
|
| | |
| | | Def_RewardType_IceLodeStar = 19, //冰晶矿脉星级奖励19
|
| | | Def_RewardType_WeekPartyAct = 20, //领取周狂欢活动奖励20
|
| | | Def_RewardType_WeekPartyPoint = 21,// 领取周狂欢积分奖励21
|
| | |
|
| | | Def_RewardType_ActLoginAwardAct = 22, // 领取登录奖励活动奖励22
|
| | | Def_RewardType_NewFairyCRecharge = 23, // 新仙界盛典充值大礼23
|
| | | Def_RewardType_NewFairyCParty = 24, // 新仙界盛典全民来嗨24
|
| | | }
|
| | |
|
| | | public enum MapType
|