Merge remote-tracking branch 'origin/master' into equipstar
| | |
| | | public static void Init()
|
| | | {
|
| | | // 登记相应的数据体及对应的数据转逻辑类
|
| | | Register(typeof(HA328_tagMCHistoryReChargeAwardRecord), typeof(DTCA328_tagMCHistoryReChargeAwardRecord));
|
| | | Register(typeof(HB311_tagGCTalkCache), typeof(DTCB311_tagGCTalkCache));
|
| | | Register(typeof(HAC01_tagGCFamilyWarInfo), typeof(DTCAC01_tagGCFamilyWarInfo));
|
| | | Register(typeof(HA40D_tagGCServerCreatFamilyTimes), typeof(DTCA40D_tagGCServerCreatFamilyTimes));
|
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: Fish |
| | | // [ Date ]: Wednesday, July 17, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public partial class AddUpRechargeConfig |
| | | { |
| | | |
| | | public readonly int RewardID;
|
| | | public readonly int Recharge;
|
| | | public readonly string Reward;
|
| | | public readonly int VIPLimit; |
| | | |
| | | public AddUpRechargeConfig() |
| | | { |
| | | } |
| | | |
| | | public AddUpRechargeConfig(string input) |
| | | { |
| | | try |
| | | { |
| | | var tables = input.Split('\t'); |
| | | |
| | | int.TryParse(tables[0],out RewardID); |
| | |
|
| | | int.TryParse(tables[1],out Recharge); |
| | |
|
| | | Reward = tables[2];
|
| | |
|
| | | int.TryParse(tables[3],out VIPLimit); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | static Dictionary<string, AddUpRechargeConfig> configs = new Dictionary<string, AddUpRechargeConfig>(); |
| | | public static AddUpRechargeConfig Get(string id) |
| | | { |
| | | if (!inited) |
| | | { |
| | | Debug.Log("AddUpRechargeConfig 还未完成初始化。"); |
| | | return null; |
| | | } |
| | | |
| | | if (configs.ContainsKey(id)) |
| | | { |
| | | return configs[id]; |
| | | } |
| | | |
| | | AddUpRechargeConfig config = null; |
| | | if (rawDatas.ContainsKey(id)) |
| | | { |
| | | config = configs[id] = new AddUpRechargeConfig(rawDatas[id]); |
| | | rawDatas.Remove(id); |
| | | } |
| | | |
| | | return config; |
| | | } |
| | | |
| | | public static AddUpRechargeConfig Get(int id) |
| | | { |
| | | return Get(id.ToString()); |
| | | } |
| | | |
| | | public static List<string> GetKeys() |
| | | { |
| | | var keys = new List<string>(); |
| | | keys.AddRange(configs.Keys); |
| | | keys.AddRange(rawDatas.Keys); |
| | | return keys; |
| | | } |
| | | |
| | | public static List<AddUpRechargeConfig> GetValues() |
| | | { |
| | | var values = new List<AddUpRechargeConfig>(); |
| | | values.AddRange(configs.Values); |
| | | |
| | | var keys = new List<string>(rawDatas.Keys); |
| | | foreach (var key in keys) |
| | | { |
| | | values.Add(Get(key)); |
| | | } |
| | | |
| | | return values; |
| | | } |
| | | |
| | | public static bool Has(string id) |
| | | { |
| | | return configs.ContainsKey(id) || rawDatas.ContainsKey(id); |
| | | } |
| | | |
| | | public static bool Has(int id) |
| | | { |
| | | return Has(id.ToString()); |
| | | } |
| | | |
| | | public static bool inited { get; private set; } |
| | | protected static Dictionary<string, string> rawDatas = new Dictionary<string, string>(); |
| | | public static void Init(bool sync=false) |
| | | { |
| | | inited = false; |
| | | var path = string.Empty; |
| | | if (AssetSource.refdataFromEditor) |
| | | { |
| | | path = ResourcesPath.CONFIG_FODLER +"/AddUpRecharge.txt"; |
| | | } |
| | | else |
| | | { |
| | | path = AssetVersionUtility.GetAssetFilePath("config/AddUpRecharge.txt"); |
| | | } |
| | | |
| | | configs.Clear(); |
| | | var tempConfig = new AddUpRechargeConfig(); |
| | | var preParse = tempConfig is IConfigPostProcess; |
| | | |
| | | if (sync) |
| | | { |
| | | var lines = File.ReadAllLines(path); |
| | | if (!preParse) |
| | | { |
| | | rawDatas = new Dictionary<string, string>(lines.Length - 3); |
| | | } |
| | | for (int i = 3; i < lines.Length; i++) |
| | | { |
| | | try |
| | | { |
| | | var line = lines[i]; |
| | | var index = line.IndexOf("\t"); |
| | | if (index == -1) |
| | | { |
| | | continue; |
| | | } |
| | | var id = line.Substring(0, index); |
| | | |
| | | if (preParse) |
| | | { |
| | | var config = new AddUpRechargeConfig(line); |
| | | configs[id] = config; |
| | | (config as IConfigPostProcess).OnConfigParseCompleted(); |
| | | } |
| | | else |
| | | { |
| | | rawDatas[id] = line; |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | Debug.LogError(ex); |
| | | } |
| | | } |
| | | inited = true; |
| | | } |
| | | else |
| | | { |
| | | ThreadPool.QueueUserWorkItem((object _object) => |
| | | { |
| | | var lines = File.ReadAllLines(path); |
| | | if (!preParse) |
| | | { |
| | | rawDatas = new Dictionary<string, string>(lines.Length - 3); |
| | | } |
| | | for (int i = 3; i < lines.Length; i++) |
| | | { |
| | | try |
| | | { |
| | | var line = lines[i]; |
| | | var index = line.IndexOf("\t"); |
| | | if (index == -1) |
| | | { |
| | | continue; |
| | | } |
| | | var id = line.Substring(0, index); |
| | | |
| | | if (preParse) |
| | | { |
| | | var config = new AddUpRechargeConfig(line); |
| | | configs[id] = config; |
| | | (config as IConfigPostProcess).OnConfigParseCompleted(); |
| | | } |
| | | else |
| | | { |
| | | rawDatas[id] = line; |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | Debug.LogError(ex); |
| | | } |
| | | } |
| | | |
| | | inited = true; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8d24fb2f23ef9ec4898ccbdaebe0a226 |
| | | timeCreated: 1563346681 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | var _jsonData = LitJson.JsonMapper.ToObject(vNetData.UserData); |
| | | if ((_jsonData as IDictionary).Contains("210")) |
| | | { |
| | | _player.horseAwakeId = int.Parse(_jsonData["210"].ToString()); |
| | | _player.horseAwakeId = int.Parse(_jsonData["210"][0].ToString()); |
| | | } |
| | | } |
| | | if (_player.MovingState == E_MovingState.Ride) |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Wednesday, July 17, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using Snxxz.UI;
|
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | public class DTCA328_tagMCHistoryReChargeAwardRecord : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | {
|
| | | base.Done(vNetPack);
|
| | | var package = vNetPack as HA328_tagMCHistoryReChargeAwardRecord;
|
| | | ModelCenter.Instance.GetModel<AddUpRechargeModel>().ReceivePackage(package);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f304f169157903a42840d01699d0b648 |
| | | timeCreated: 1563350936 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // A3 28 历史累积充值奖励领取记录 #tagMCHistoryReChargeAwardRecord
|
| | |
|
| | | public class HA328_tagMCHistoryReChargeAwardRecord : GameNetPackBasic {
|
| | | public uint AwardGetRecord; // 按二进制位标示领取记录 配置奖励ID代表第几位
|
| | |
|
| | | public HA328_tagMCHistoryReChargeAwardRecord () {
|
| | | _cmd = (ushort)0xA328;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out AwardGetRecord, vBytes, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fbd33c62f56476445a2cb17a801b4917 |
| | | timeCreated: 1563350923 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | if (ItemLogicUtility.Instance.IsRealmEquip(config.ItemID))
|
| | | {
|
| | | var itemConfig = ItemConfig.Get(config.ItemID);
|
| | | if (!ItemLogicUtility.Instance.IsJobCompatibleItem(config.ItemID))
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (itemConfig.EquipPlace <= 8 && itemConfig.SuiteiD == 0)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var equipControlConfig = EquipControlConfig.Get(itemConfig.LV, itemConfig.EquipPlace);
|
| | | if (equipControlConfig.level == realmLevel)
|
| | | if (equipControlConfig != null && equipControlConfig.realm == realmLevel)
|
| | | {
|
| | | AuctionInquiry.Instance.SendAttentionAuctionItemChange(config.ItemID, 1);
|
| | | }
|
| | |
| | | var score = 0;
|
| | | if (ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId))
|
| | | {
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict);
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict, true);
|
| | | var isUp = ItemLogicUtility.Instance.IsFightUp(auctionItem.itemId, score);
|
| | | m_ItemCell.stateIcon.gameObject.SetActive(isUp == 1);
|
| | | if (isUp == 1)
|
| | |
| | | var score = 0;
|
| | | if (ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId))
|
| | | {
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict);
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict, true);
|
| | | var isUp = ItemLogicUtility.Instance.IsFightUp(auctionItem.itemId, score);
|
| | | m_ItemCell.stateIcon.gameObject.SetActive(isUp == 1);
|
| | | if (isUp == 1)
|
| | |
| | | var score = 0;
|
| | | if (ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId))
|
| | | {
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict);
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict,true);
|
| | | var isUp = ItemLogicUtility.Instance.IsFightUp(auctionItem.itemId, score);
|
| | | m_ItemCell.stateIcon.gameObject.SetActive(isUp == 1);
|
| | | if (isUp == 1)
|
| | |
| | | var score = 0;
|
| | | if (ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId))
|
| | | {
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict);
|
| | | score = ItemLogicUtility.Instance.GetEquipScore(auctionItem.itemId, auctionItem.userDataDict,true);
|
| | | var isUp = ItemLogicUtility.Instance.IsFightUp(auctionItem.itemId, score);
|
| | | m_ItemCell.stateIcon.gameObject.SetActive(isUp == 1);
|
| | | if (isUp == 1)
|
| | |
| | | {
|
| | | itemId = (int)itemModel.ItemID,
|
| | | isAuctionEquip = true,
|
| | | score = ItemLogicUtility.Instance.GetEquipScore((int)itemModel.ItemID, userDataDict),
|
| | | score = ItemLogicUtility.Instance.GetEquipScore((int)itemModel.ItemID, userDataDict, true),
|
| | | legendProperty = ItemTipUtility.GetLegendProperty((int)itemModel.ItemID, userDataDict),
|
| | | });
|
| | | } |
| | |
| | | bool hasInitializedNpc = false;
|
| | | public bool hasCompleted { get; private set; }
|
| | |
|
| | | static Clock s_CollectClock = null;
|
| | |
|
| | | static Dictionary<uint, GA_NpcClientCollect> s_CollectNpcs = new Dictionary<uint, GA_NpcClientCollect>();
|
| | | static Dictionary<uint, int> s_Sid2NpcIds = new Dictionary<uint, int>();
|
| | | static Dictionary<uint, int> s_Sid2NpcIndexs = new Dictionary<uint, int>();
|
| | |
| | | HazyGrassModel model { get { return ModelCenter.Instance.GetModel<HazyGrassModel>(); } }
|
| | | HazyRegionModel hazyRegionModel { get { return ModelCenter.Instance.GetModel<HazyRegionModel>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | |
|
| | | public override void Initialize()
|
| | | {
|
| | |
| | | InitialPlayer();
|
| | | InitializeNpc();
|
| | |
|
| | | TryGotoCloserNpc();
|
| | | var npcId = TryGetScarceNpc();
|
| | | TryGotoCloserNpc(npcId);
|
| | |
|
| | | model.onMapNpcCountRefresh += OnMapNpcCountRefresh;
|
| | | }
|
| | |
| | | public override void UnInitialize()
|
| | | {
|
| | | base.UnInitialize();
|
| | |
|
| | | if (s_CollectClock != null)
|
| | | {
|
| | | Clock.Stop(s_CollectClock);
|
| | | s_CollectClock = null;
|
| | | }
|
| | |
|
| | |
|
| | | UnloadAllNpc();
|
| | |
|
| | |
| | | {
|
| | | InitializeNpc();
|
| | |
|
| | | TryGotoCloserNpc();
|
| | | var npcId = TryGetScarceNpc();
|
| | | TryGotoCloserNpc(npcId);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | s_CollectNpcs.Remove(_sid);
|
| | | }
|
| | |
|
| | | var dungeon = ClientDungeonStageUtility.dungeonInfo;
|
| | | var hintId = dungeonModel.GetDungeonHintId(dungeon.mapId, dungeon.lineId);
|
| | | var dungeonHintConfig = DungeonHintConfig.Get(hintId);
|
| | | if (dungeonHintConfig != null)
|
| | | if (s_CollectClock != null)
|
| | | {
|
| | | var collectCount = 0;
|
| | | for (int i = 0; i < dungeonHintConfig.NPC1ID.Length; i++)
|
| | | Clock.Stop(s_CollectClock);
|
| | | s_CollectClock = null;
|
| | | }
|
| | |
|
| | | s_CollectClock = Clock.AlarmAfter(0.5f, () =>
|
| | | {
|
| | | var dungeon = ClientDungeonStageUtility.dungeonInfo;
|
| | | var hintId = dungeonModel.GetDungeonHintId(dungeon.mapId, dungeon.lineId);
|
| | | var dungeonHintConfig = DungeonHintConfig.Get(hintId);
|
| | | if (dungeonHintConfig != null)
|
| | | {
|
| | | collectCount += dungeonModel.GetDugneonNpcCollectCount(dungeonHintConfig.NPC1ID[i]);
|
| | | }
|
| | | if (dungeonHintConfig.targetValue1.Length > 0
|
| | | && dungeonHintConfig.targetValue1[0] > 0)
|
| | | {
|
| | | if (collectCount < dungeonHintConfig.targetValue1[0] - 1)
|
| | | var collectCount = 0;
|
| | | for (int i = 0; i < dungeonHintConfig.NPC1ID.Length; i++)
|
| | | {
|
| | | TryGotoCloserNpc();
|
| | | collectCount += dungeonModel.GetDugneonNpcCollectCount(dungeonHintConfig.NPC1ID[i]);
|
| | | }
|
| | | if (dungeonHintConfig.targetValue1.Length > 0
|
| | | && dungeonHintConfig.targetValue1[0] > 0)
|
| | | {
|
| | | if (collectCount < dungeonHintConfig.targetValue1[0])
|
| | | {
|
| | | var npcId = TryGetScarceNpc();
|
| | | TryGotoCloserNpc(npcId);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | void InitialPlayer()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | void TryGotoCloserNpc()
|
| | | /// <summary>
|
| | | /// |
| | | /// </summary>
|
| | | /// <param name="npcId">指定NpcId</param>
|
| | | void TryGotoCloserNpc(int npcId = 0)
|
| | | {
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | | if (hero == null)
|
| | |
| | |
|
| | | foreach (var npc in s_CollectNpcs.Values)
|
| | | {
|
| | | if (npcId != 0 && npc.NpcConfig.NPCID != npcId)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var dis = MathUtility.CalDistance(hero.Pos, npc.Pos);
|
| | | if (minDis > dis)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | int TryGetScarceNpc()
|
| | | {
|
| | | if (ClientDungeonStageUtility.clientMapId == HazyGrassModel.REIKI_CLIENTDATAMAP)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | List<int> npcIds = new List<int>();
|
| | | var dungeon = ClientDungeonStageUtility.dungeonInfo;
|
| | | var hintId = dungeonModel.GetDungeonHintId(dungeon.mapId, dungeon.lineId);
|
| | | var dungeonHintConfig = DungeonHintConfig.Get(hintId);
|
| | | if (dungeonHintConfig != null)
|
| | | {
|
| | | npcIds.AddRange(dungeonHintConfig.NPC1ID);
|
| | | }
|
| | |
|
| | | if (npcIds.Count > 0)
|
| | | {
|
| | | npcIds.Sort((lhs, rhs) =>
|
| | | {
|
| | | var lhs_item = model.GetGrassNpcItemId(lhs);
|
| | | var rhs_item = model.GetGrassNpcItemId(rhs);
|
| | | var lhs_npcCount = model.GetMapNpcCount(lhs);
|
| | | var rhs_npcCount = model.GetMapNpcCount(rhs);
|
| | | var lhs_empty = lhs_npcCount == 0;
|
| | | var rhs_empty = rhs_npcCount == 0;
|
| | | if (lhs_empty != rhs_empty)
|
| | | {
|
| | | return lhs_empty.CompareTo(rhs_empty);
|
| | | }
|
| | | var lhs_itemCount = packModel.GetItemCountByID(PackType.Item, lhs_item);
|
| | | var rhs_itemCount = packModel.GetItemCountByID(PackType.Item, rhs_item);
|
| | | if (lhs_itemCount != rhs_itemCount)
|
| | | {
|
| | | return lhs_itemCount.CompareTo(rhs_itemCount);
|
| | | }
|
| | | return lhs_item.CompareTo(rhs_item);
|
| | | });
|
| | |
|
| | | return npcIds[0];
|
| | | }
|
| | | return 0;
|
| | | }
|
| | |
|
| | | private void OnHeroFindStop()
|
| | | {
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | |
| | | }
|
| | | hero.OnPathFindStop -= OnHeroFindStop;
|
| | |
|
| | | if (ClientDungeonStageUtility.clientMapId == HazyGrassModel.REIKI_CLIENTDATAMAP)
|
| | | if (PlayerDatas.Instance.baseData.LV >= model.autoCollectLevel)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV >= model.autoCollectLevel)
|
| | | if (autoNpc != null)
|
| | | {
|
| | | if (autoNpc != null)
|
| | | {
|
| | | float _chkDistSqrt = MathUtility.DistanceSqrtXZ(hero.Pos, autoNpc.Pos);
|
| | | float _chkDist = GeneralDefine.CloseNpcDist + autoNpc.NpcConfig.ModelRadius + 0.3f;
|
| | | float _chkDistSqrt = MathUtility.DistanceSqrtXZ(hero.Pos, autoNpc.Pos);
|
| | | float _chkDist = GeneralDefine.CloseNpcDist + autoNpc.NpcConfig.ModelRadius + 0.3f;
|
| | |
|
| | | if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
|
| | | {
|
| | | hero.SelectTarget = autoNpc;
|
| | | ClientCollectUtility.HandleCallback(E_NpcType.Collect, autoNpc.NpcConfig.NPCID, autoNpc.ServerInstID);
|
| | | }
|
| | | if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
|
| | | {
|
| | | hero.SelectTarget = autoNpc;
|
| | | ClientCollectUtility.HandleCallback(E_NpcType.Collect, autoNpc.NpcConfig.NPCID, autoNpc.ServerInstID);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | case TipType.Equip:
|
| | | mainTipData = CreateNormalEquipData(itemId);
|
| | | if (item.isAuctionEquip)
|
| | | if (item.isAuctionEquip && !item.legendProperty.Equals(default(LegendProperty)))
|
| | | {
|
| | | mainTipData.legendProperty = item.legendProperty;
|
| | | mainTipData.baseInfo.score = item.score;
|
| | |
| | | if (userData != null)
|
| | | {
|
| | | userData.TryGetValue(17, out ids);
|
| | | userData.TryGetValue(17, out values);
|
| | | userData.TryGetValue(19, out values);
|
| | | } |
| | | if (!ids.IsNullOrEmpty() && !values.IsNullOrEmpty()) |
| | | { |
| | |
| | | m_Label.gameObject.SetActive(false); |
| | | } |
| | | |
| | | m_DogzStarLabel.text = ""; |
| | | if (m_DogzStarLabel != null)
|
| | | {
|
| | | m_DogzStarLabel.text = ""; |
| | | } |
| | | |
| | | var itemConfig = ItemConfig.Get(baseInfo.itemId); |
| | | if (ItemLogicUtility.Instance.IsDogzEquip(baseInfo.itemId)) |
| | | { |
| | | m_Star.text = ""; |
| | | m_DogzStarLabel.text = dogzModel.GetStarLevelLabel(itemConfig.StarLevel); |
| | | m_Star.text = "";
|
| | | if (m_DogzStarLabel != null)
|
| | | {
|
| | | m_DogzStarLabel.text = dogzModel.GetStarLevelLabel(itemConfig.StarLevel); |
| | | } |
| | | } |
| | | |
| | | var strengthenPostfix = baseInfo.strengthenLevel > 0 ? string.Format("+{0}", baseInfo.strengthenLevel) : ""; |
| | |
| | | return;
|
| | | }
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<VipRechargeWin>(false, 1);
|
| | | if (ModelCenter.Instance.GetModel<VipModel>().vipRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | WindowCenter.Instance.Open<VipRechargeWin>(false, 1);
|
| | | }
|
| | | else if(ModelCenter.Instance.GetModel<AddUpRechargeModel>().redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | WindowCenter.Instance.Open<VipRechargeWin>(false, 2);
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Open<VipRechargeWin>(false, 1);
|
| | | }
|
| | | }
|
| | |
|
| | | void HeadButton()
|
| | |
| | | } |
| | | private void AwardMessageUpdate() |
| | | { |
| | | if (inSevenDay.RewardForDic.ContainsKey(SelectedDay) |
| | | && inSevenDay.RewardForDic[SelectedDay] == 1
|
| | | && SelectedDay < 7)
|
| | | {
|
| | | SelectedDay += 1;
|
| | | }
|
| | | m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | ContentAssignment(); |
| | | } |
| | | |
| | | |
| | | ContentAssignment();
|
| | | }
|
| | |
|
| | |
|
| | | void OnCreateGridLineCell(ScrollerController gridCtrl)//预制体创建 |
| | | { |
| | | gridCtrl.Refresh(); |
| | |
| | | switch (_order)
|
| | | {
|
| | | case 0:
|
| | | if (impactRankModel.IsLock(_type))
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("ImpactRankActivityUnOpen");
|
| | | return;
|
| | | }
|
| | | impactRankModel.presentSelectType = _type;
|
| | | break;
|
| | | case 2:
|
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class AddUpRechargeBehaviour : CellView
|
| | | {
|
| | | [SerializeField] Text m_Title;
|
| | | [SerializeField] RareItem[] m_Items;
|
| | | [SerializeField] Text m_Progress;
|
| | | [SerializeField] Button m_GetReward;
|
| | | [SerializeField] Transform m_Complete;
|
| | | [SerializeField] Transform m_UnAchieve;
|
| | |
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | | AddUpRechargeModel model { get { return ModelCenter.Instance.GetModel<AddUpRechargeModel>(); } }
|
| | |
|
| | | public void Display(int id)
|
| | | {
|
| | | var config = AddUpRechargeConfig.Get(id);
|
| | | m_Title.text = string.Format("累计充值:{0}元", config.Recharge);
|
| | |
|
| | | List<Item> items;
|
| | | model.TryGetItems(id, out items);
|
| | | for (int i = 0; i < m_Items.Length; i++)
|
| | | {
|
| | | if (items != null && i < items.Count)
|
| | | {
|
| | | m_Items[i].gameObject.SetActive(true);
|
| | | var item = items[i];
|
| | | var itemData = new ItemCellModel(item.id, true, (ulong)item.count);
|
| | | m_Items[i].SetItemRare(itemData, item.quality == 1);
|
| | | m_Items[i].button.SetListener(() =>
|
| | | {
|
| | | ItemTipUtility.Show(item.id);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Items[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | |
|
| | | var state = model.GetAddUpRechargeState(id);
|
| | | m_Progress.gameObject.SetActive(state == -1);
|
| | | m_UnAchieve.gameObject.SetActive(state == -1);
|
| | | m_Complete.gameObject.SetActive(state == 1);
|
| | | m_GetReward.gameObject.SetActive(state == 0);
|
| | | switch (state)
|
| | | {
|
| | | case -1:
|
| | | m_Progress.text = StringUtility.Contact("进度:", PlayerDatas.Instance.baseData.coinPointTotal * 0.01, "/", config.Recharge);
|
| | | break;
|
| | | }
|
| | |
|
| | | m_GetReward.SetListener(() =>
|
| | | {
|
| | | model.SendGetReward(id);
|
| | | });
|
| | | }
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7eac1fc4f4862d043a57b60c912a67bb |
| | | timeCreated: 1563348985 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class AddUpRechargeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | Dictionary<int, Dictionary<int, List<Item>>> m_AddUpItems = new Dictionary<int, Dictionary<int, List<Item>>>();
|
| | |
|
| | | public readonly Redpoint redpoint = new Redpoint(35, 3506);
|
| | |
|
| | | public uint rewardRecord { get; private set; }
|
| | |
|
| | | public event Action onRewardRecordUpdate;
|
| | |
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | |
|
| | | PlayerDatas.Instance.playerDataRefreshEvent += PlayerDataRefreshEvent;
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | PlayerDatas.Instance.playerDataRefreshEvent -= PlayerDataRefreshEvent;
|
| | | }
|
| | |
|
| | | void ParseConfig()
|
| | | {
|
| | | var configs = AddUpRechargeConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | m_AddUpItems[config.RewardID] = new Dictionary<int, List<Item>>();
|
| | | var dict = m_AddUpItems[config.RewardID];
|
| | | var json = LitJson.JsonMapper.ToObject(config.Reward);
|
| | | foreach (var jobKey in json.Keys)
|
| | | {
|
| | | var job = int.Parse(jobKey);
|
| | | dict[job] = new List<Item>();
|
| | | var itemArray = LitJson.JsonMapper.ToObject<int[][]>(json[jobKey].ToJson());
|
| | | for (int i = 0; i < itemArray.Length; i++)
|
| | | {
|
| | | dict[job].Add(new Item()
|
| | | {
|
| | | id = itemArray[i][0],
|
| | | count = itemArray[i][1],
|
| | | quality = itemArray[i].Length > 2 ? itemArray[i][2] : 0,
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void PlayerDataRefreshEvent(PlayerDataType dataType)
|
| | | {
|
| | | if (dataType == PlayerDataType.VIPLv
|
| | | || dataType == PlayerDataType.ChangeCoinPointTotal)
|
| | | {
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | public bool TryGetItems(int id,out List<Item> items)
|
| | | {
|
| | | items = null;
|
| | | if (m_AddUpItems.ContainsKey(id))
|
| | | {
|
| | | m_AddUpItems[id].TryGetValue(PlayerDatas.Instance.baseData.Job, out items);
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public void ReceivePackage(HA328_tagMCHistoryReChargeAwardRecord package)
|
| | | {
|
| | | rewardRecord = package.AwardGetRecord;
|
| | | if (onRewardRecordUpdate != null)
|
| | | {
|
| | | onRewardRecordUpdate();
|
| | | }
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public bool SatisfyAnyVipLevel()
|
| | | {
|
| | | var configs = AddUpRechargeConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.VIPLv >= config.VIPLimit)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public int GetAddUpRechargeState(int id)
|
| | | {
|
| | | if (MathUtility.GetBitValue(rewardRecord, (ushort)id))
|
| | | {
|
| | | return 1;
|
| | | }
|
| | | var config = AddUpRechargeConfig.Get(id);
|
| | | if (PlayerDatas.Instance.baseData.VIPLv < config.VIPLimit)
|
| | | {
|
| | | return -1;
|
| | | }
|
| | | if (PlayerDatas.Instance.baseData.coinPointTotal * 0.01 < config.Recharge)
|
| | | {
|
| | | return -1;
|
| | | }
|
| | | return 0;
|
| | | }
|
| | |
|
| | | public void SendGetReward(int id)
|
| | | {
|
| | | CA504_tagCMPlayerGetReward pak = new CA504_tagCMPlayerGetReward();
|
| | | pak.RewardType = (byte)GotServerRewardType.Def_RewardType_HistoryChargeAward;
|
| | | pak.DataEx = (uint)id;
|
| | | pak.DataExStrLen = 0;
|
| | | pak.DataExStr = string.Empty;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | |
|
| | | void UpdateRedpoint()
|
| | | {
|
| | | var isOpen = SatisfyAnyVipLevel();
|
| | | var configs = AddUpRechargeConfig.GetValues();
|
| | | var redable = false;
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (isOpen && GetAddUpRechargeState(config.RewardID) == 0)
|
| | | {
|
| | | redable = true;
|
| | | }
|
| | | }
|
| | | redpoint.state = redable ? RedPointState.Simple : RedPointState.None;
|
| | | }
|
| | |
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5494b046cc7775d4daeac578bb40bbf1 |
| | | timeCreated: 1563343226 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Wednesday, July 17, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class AddUpRechargeWin : Window
|
| | | {
|
| | | [SerializeField] ScrollerController m_Scroller;
|
| | | [SerializeField] Button m_Recharge;
|
| | | [SerializeField] Text m_GoldValue;
|
| | |
|
| | | AddUpRechargeModel model { get { return ModelCenter.Instance.GetModel<AddUpRechargeModel>(); } }
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_Scroller.OnRefreshCell += OnRefreshCell;
|
| | | m_Recharge.SetListener(() =>
|
| | | {
|
| | | if (VersionConfig.Get().isBanShu)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FuncNoOpen_Nowaday");
|
| | | return;
|
| | | }
|
| | | if (FuncOpen.Instance.IsFuncOpen(113))
|
| | | {
|
| | | ModelCenter.Instance.GetModel<VipModel>().OpenVipPayUI(VipModel.VipWinType.Pay);
|
| | | }
|
| | | else
|
| | | {
|
| | | FuncOpen.Instance.ProcessorFuncErrorTip(113);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | model.onRewardRecordUpdate += OnRewardRecordUpdate;
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | | {
|
| | | base.OnActived();
|
| | | Display();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | model.onRewardRecordUpdate -= OnRewardRecordUpdate;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void OnRewardRecordUpdate()
|
| | | {
|
| | | m_Scroller.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | |
|
| | | void Display()
|
| | | {
|
| | | m_GoldValue.text = UIHelper.ReplaceLargeNum(PlayerDatas.Instance.baseData.diamond);
|
| | |
|
| | | var configs = AddUpRechargeConfig.GetValues();
|
| | | var jumpIndex = 0;
|
| | | m_Scroller.Refresh();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.VIPLv >= config.VIPLimit)
|
| | | {
|
| | | m_Scroller.AddCell(ScrollerDataType.Header, config.RewardID);
|
| | | if (model.GetAddUpRechargeState(config.RewardID) == 1)
|
| | | {
|
| | | jumpIndex++;
|
| | | }
|
| | | }
|
| | | }
|
| | | jumpIndex = Mathf.Min(jumpIndex, configs.Count - 1);
|
| | | m_Scroller.Restart();
|
| | |
|
| | | var offset = 0f;
|
| | | m_Scroller.JumpIndex(jumpIndex, ref offset);
|
| | | var rect = m_Scroller.mScrollRect.transform as RectTransform;
|
| | | m_Scroller.JumpIndex(offset - rect.rect.height / 2, 0, EnhancedUI.EnhancedScroller.EnhancedScroller.TweenType.immediate);
|
| | | }
|
| | |
|
| | | private void OnRefreshCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | var rechargeCell = cell as AddUpRechargeBehaviour;
|
| | | rechargeCell.Display(cell.index);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e9f80d8a5ec549a4c93db536d0891273 |
| | | timeCreated: 1563343249 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | var _openDay = 0;
|
| | | List<StoreConfig> _list = null;
|
| | | StoreConfig.TryGetStoreConfigs((int)StoreFunc.OSTimeLimitGift, out _list);
|
| | | for (int i = 0; i < _list.Count; i++)
|
| | | if (_list != null)
|
| | | {
|
| | | List<StoreConfig> _configs = null;
|
| | | if (!m_OSTimeLimitGifts.TryGetValue(_list[i].LimitValue, out _configs))
|
| | | for (int i = 0; i < _list.Count; i++)
|
| | | {
|
| | | _configs = new List<StoreConfig>();
|
| | | m_OSTimeLimitGifts.Add(_list[i].LimitValue, _configs);
|
| | | }
|
| | | _configs.Add(_list[i]);
|
| | | if (_list[i].LimitValue > _openDay)
|
| | | {
|
| | | _openDay = _list[i].LimitValue;
|
| | | List<StoreConfig> _configs = null;
|
| | | if (!m_OSTimeLimitGifts.TryGetValue(_list[i].LimitValue, out _configs))
|
| | | {
|
| | | _configs = new List<StoreConfig>();
|
| | | m_OSTimeLimitGifts.Add(_list[i].LimitValue, _configs);
|
| | | }
|
| | | _configs.Add(_list[i]);
|
| | | if (_list[i].LimitValue > _openDay)
|
| | | {
|
| | | _openDay = _list[i].LimitValue;
|
| | | }
|
| | | }
|
| | | }
|
| | | openDays = _openDay;
|
| | |
| | | {
|
| | | Pay = 0,
|
| | | Vip = 1,
|
| | | VipInverst = 2,
|
| | | MonthInvest = 3,
|
| | | AddUp = 2,
|
| | | }
|
| | |
|
| | | public VipWinType vipWinType = VipWinType.Vip;
|
| | |
| | | [SerializeField] Button closeBtn;
|
| | | [SerializeField] FunctionButton vipPayTitleBtn;
|
| | | [SerializeField] FunctionButton vipTitleBtn;
|
| | | [SerializeField] FunctionButton addUpBtn;
|
| | | [SerializeField] FunctionButtonGroup buttonGroup;
|
| | | [SerializeField] Image m_Line;
|
| | | [SerializeField] Vector3[] m_LinePositions;
|
| | |
|
| | | private VipModel m_Model;
|
| | | private VipModel model
|
| | |
| | |
|
| | | TreasureModel treasureModel { get { return ModelCenter.Instance.GetModel<TreasureModel>(); } }
|
| | |
|
| | | FairyJadeInvestmentModel m_FairyJadeInvestmentModel;
|
| | | FairyJadeInvestmentModel fairyJadeInvestmentModel { get { return m_FairyJadeInvestmentModel ?? (m_FairyJadeInvestmentModel = ModelCenter.Instance.GetModel<FairyJadeInvestmentModel>()); } }
|
| | | AddUpRechargeModel addUpRechargeModel { get { return ModelCenter.Instance.GetModel<AddUpRechargeModel>(); } }
|
| | | private VipModel.VipWinType presentWinType = VipModel.VipWinType.Vip;
|
| | |
|
| | | #region Built-in
|
| | |
| | | closeBtn.onClick.AddListener(OnClose);
|
| | | vipPayTitleBtn.onClick.AddListener(OnVipPay);
|
| | | vipTitleBtn.onClick.AddListener(OnVip);
|
| | | addUpBtn.onClick.AddListener(OnAddUp);
|
| | | }
|
| | |
|
| | | private void OnAddUp()
|
| | | {
|
| | | CloseChildWin();
|
| | | WindowCenter.Instance.Open<AddUpRechargeWin>();
|
| | | presentWinType = VipModel.VipWinType.AddUp;
|
| | | functionOrder = 2;
|
| | | }
|
| | |
|
| | | public void OnVipPay()
|
| | | {
|
| | | CloseChildWin();
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | DisplayButtonStates();
|
| | | CloseChildWin();
|
| | | model.OnVipOpenPayWinEvent += OnVipWinOpenEvnet;
|
| | | RechargeTipWin.JumpVipPanel += JumpVipPanel;
|
| | | PlayerDatas.Instance.playerDataRefreshEvent += PlayerDataRefreshEvent;
|
| | | }
|
| | |
|
| | | private void JumpVipPanel()
|
| | |
| | | CloseChildWin();
|
| | | model.OnVipOpenPayWinEvent -= OnVipWinOpenEvnet;
|
| | | RechargeTipWin.JumpVipPanel -= JumpVipPanel;
|
| | |
|
| | | PlayerDatas.Instance.playerDataRefreshEvent -= PlayerDataRefreshEvent;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void PlayerDataRefreshEvent(PlayerDataType dataType)
|
| | | {
|
| | | if (dataType == PlayerDataType.VIPLv)
|
| | | {
|
| | | DisplayButtonStates();
|
| | | }
|
| | | }
|
| | |
|
| | | void DisplayButtonStates()
|
| | | {
|
| | | var isAddUpOpen = addUpRechargeModel.SatisfyAnyVipLevel();
|
| | | addUpBtn.gameObject.SetActive(isAddUpOpen);
|
| | | m_Line.rectTransform.localPosition = isAddUpOpen ? m_LinePositions[1] : m_LinePositions[0];
|
| | | }
|
| | |
|
| | | private void OnVipWinOpenEvnet()
|
| | | {
|
| | | if (presentWinType == model.vipWinType)
|
| | |
| | | vipPayTitleBtn.state = TitleBtnState.Click;
|
| | | break;
|
| | | case VipModel.VipWinType.Vip:
|
| | | vipTitleBtn.state = TitleBtnState.Click;
|
| | | OnVip();
|
| | | vipTitleBtn.state = TitleBtnState.Click;
|
| | | break;
|
| | | case VipModel.VipWinType.AddUp:
|
| | | OnAddUp();
|
| | | addUpBtn.state = TitleBtnState.Click;
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | RegisterModel<MonthWeekInvestModel>();
|
| | | RegisterModel<NewDropItemModel>();
|
| | | RegisterModel<ExchangeActiveTokenModel>();
|
| | | RegisterModel<AddUpRechargeModel>();
|
| | | inited = true;
|
| | | }
|
| | |
|
| | |
| | | break;
|
| | | case JumpUIType.OpenServerMountRank:
|
| | | var type = int.Parse(_tagWinSearchModel.SelectActive);
|
| | | if (rankModel.IsLock(type))
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("InOperationTimeError");
|
| | | return false;
|
| | | }
|
| | | if (TimeUtility.OpenDay >= rankModel.openServerActivityDays)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("ActiveOutTime");
|
| | |
| | | normalTasks.Add(new ConfigInitTask("OpenServerActivityConfig", () => { OpenServerActivityConfig.Init(); }, () => { return OpenServerActivityConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("RidingPetBossRewardConfig", () => { RidingPetBossRewardConfig.Init(); }, () => { return RidingPetBossRewardConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("ReikiRootEffectConfig", () => { ReikiRootEffectConfig.Init(); }, () => { return ReikiRootEffectConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("ItemExchangeConfig", () => { ItemExchangeConfig.Init(); }, () => { return ItemExchangeConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("ItemExchangeConfig", () => { ItemExchangeConfig.Init(); }, () => { return ItemExchangeConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("AddUpRechargeConfig", () => { AddUpRechargeConfig.Init(); }, () => { return AddUpRechargeConfig.inited; })); |
| | | } |
| | | |
| | | static List<ConfigInitTask> doingTasks = new List<ConfigInitTask>(); |
| | |
| | | Def_RewardType_FeastWeekPartyAct = 25, //领取节日巡礼活动奖励25
|
| | | Def_RewardType_FeastWeekPartyPoint = 26, //领取节日巡礼积分奖励26
|
| | | Def_RewardType_FairyAdventuresAward = 27,//缥缈奇遇
|
| | | Def_RewardType_HistoryChargeAward = 28,//累计充值
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|