//============================================ //--4>: // Exported by ExcelConfigExport // // 此代码为工具根据配置自动生成, 请不要修改 // //============================================ using System; using Sog; using System.Collections.Generic; #if UNITY_2019_1_OR_NEWER using GameLogic; #endif public partial class ArenaParamDescMgr : IConfigManager { //Singleton private static ArenaParamDescMgr _instance; private static readonly object syslock = new object(); public static ArenaParamDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new ArenaParamDescMgr(); }}} return _instance; }} public class ItemData { public ArenaParamDesc Item; public int Line; public bool ReadAlready; } protected SortedList m_ItemTable = new SortedList(); //for server only, m_readKeyOnly must be false protected SortedList m_ItemDescTable = new SortedList(); public SortedList ItemTable { get { if (m_ItemDescTable.Count == 0) { foreach (var item in m_ItemTable) { m_ItemDescTable.Add(item.Key, item.Value.Item); }} return m_ItemDescTable; } } private TabBinFile m_tbf; //private TabTextFile m_tf; private int m_curAsynKey1; public override bool InitBin(string fileName, byte[] fileContent) { m_ErrorCount = 0; m_ItemTable.Clear(); m_ItemDescTable.Clear(); m_allRead = false; m_curAsynKey1 = 0; m_tbf = new TabBinFile(fileName, fileContent); while (m_tbf.Next()) { ItemData itemData = new ItemData() { Item = new ArenaParamDesc() }; var item = itemData.Item; if (m_readKeyOnly) {m_tbf.SetCurrentCol(0); } if (item.ReadItemBin(m_tbf, m_readKeyOnly) == false) { TraceLog.Error("Failed to InitBin TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine); m_ErrorCount++; continue; } if (m_ItemTable.ContainsKey(item.GetKey1())) { TraceLog.Error("Failed to InitBin TabManager:{0}, multi key:{1}, line: {2}", this.ToString(), item.GetKey1(), m_tbf.CurrentLine); m_ErrorCount++; continue; } m_ItemTable.Add(item.GetKey1(), itemData); if (m_readKeyOnly) { itemData.Line = m_tbf.CurrentLine; } else { itemData.ReadAlready = true; } } if (!m_readKeyOnly) { m_tbf = null; } return true; } #if UNITY_2019_1_OR_NEWER public override bool InitBinByIL(string fileName, byte[] fileContent) { m_ErrorCount = 0; m_ItemTable.Clear(); m_tbf = new TabBinFile(fileName, fileContent); while (m_tbf.Next()) { ItemData itemData = new ItemData() { Item = new ArenaParamDesc() }; int keyCount = 0; if(m_readKeyOnly) { keyCount = 1;} var item = itemData.Item; item = item.ReadItemInIL(m_tbf, keyCount); if (item == null) { TraceLog.Error("Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine); m_ErrorCount++; continue; } if (m_ItemTable.ContainsKey(item.GetKey1())) { TraceLog.Error("Failed to init TabManager:{0}, multi key:{1}, line: {2}", this.ToString(), item.GetKey1(), m_tbf.CurrentLine); m_ErrorCount++; continue; } m_ItemTable.Add(item.GetKey1(), itemData); if (m_readKeyOnly) { itemData.Line = m_tbf.CurrentLine; } else { itemData.ReadAlready = true; } } return true; } #endif public ArenaParamDesc GetConfig(int key) { ItemData itemData; if (m_ItemTable.TryGetValue(key, out itemData) == false) { return null; } if(itemData.ReadAlready) { return itemData.Item; } if (m_tbf == null) { TraceLog.Error("Cfg1KeyMgrTemplate.GetConfig Failed fs null TabManager:{ 0}, read line error,", this.ToString()); return null; } m_tbf.SetCurrentLine(itemData.Line); m_tbf.SetCurrentCol(0); itemData.ReadAlready = true; if (itemData.Item.ReadItemBin(m_tbf, false) == false) { TraceLog.Error("Cfg1KeyMgrTemplate.GetConfig Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine); return null; } return itemData.Item; } public override int AsynReadBin(int maxTimes) { int times = 0; if (m_allRead) { return times; } if (m_tbf == null) { return times; } for (; m_curAsynKey1 < m_ItemTable.Count && times < maxTimes; m_curAsynKey1++) { var itemData = m_ItemTable.Values[m_curAsynKey1]; if (itemData.ReadAlready) { continue; } m_tbf.SetCurrentLine(itemData.Line); m_tbf.SetCurrentCol(0); itemData.ReadAlready = true; if (itemData.Item.ReadItemBin(m_tbf, false) == false) { TraceLog.Error("Cfg1KeyMgrTemplate.AsynReadBin Failed to init TabManager:{ 0}, read line error, line: { 1}", this.ToString(), m_tbf.CurrentLine); return times; } times++; } if (m_curAsynKey1 >= m_ItemTable.Count) { m_allRead = true; m_tbf = null; } return times; } } public partial class ArenaParamDesc { public static readonly string _KEY_type = "type"; public static readonly string _KEY_awardWeek = "awardWeek"; public static readonly string _KEY_awardTime = "awardTime"; public static readonly string _KEY_refreshItem_type = "refreshItem_type"; public static readonly string _KEY_refreshItem_id = "refreshItem_id"; public static readonly string _KEY_refreshItem_value = "refreshItem_value"; public static readonly string _KEY_refresh_cd = "refresh_cd"; public static readonly string _KEY_ticketId = "ticketId"; public static readonly string _KEY_resetRetainCount = "resetRetainCount"; public static readonly string _KEY_defaultTicket = "defaultTicket"; public static readonly string _KEY_unlockTicket = "unlockTicket"; public static readonly string _KEY_rankCheckMax = "rankCheckMax"; public static readonly string _KEY_messageMax = "messageMax"; public static readonly string _KEY_protectTime = "protectTime"; public static readonly string _KEY_defaultScore = "defaultScore"; public static readonly string _KEY_protectOff = "protectOff"; public static readonly string _KEY_mailTitle = "mailTitle"; public static readonly string _KEY_seasonResetDay = "seasonResetDay"; public static readonly string _KEY_initTicketCount = "initTicketCount"; public static readonly string _KEY_dailyChallengeTimes = "dailyChallengeTimes"; public static readonly string _KEY_seasonStartDate = "seasonStartDate"; public static readonly string _KEY_challengeBeginTime = "challengeBeginTime"; public static readonly string _KEY_challengeEndTime = "challengeEndTime"; public static readonly string _KEY_mailTxt = "mailTxt"; public static readonly string _KEY_seasonMailTitle = "seasonMailTitle"; public static readonly string _KEY_seasonMailTxt = "seasonMailTxt"; public static readonly string _KEY_starCionInterval = "starCionInterval"; public static readonly string _KEY_starCionBoxMax = "starCionBoxMax"; public static readonly string _KEY_integralInterval = "integralInterval"; public static readonly string _KEY_MainlandId = "MainlandId"; public static readonly string _KEY_reductionRate = "reductionRate"; public static readonly string _KEY_realPlayerMatchRate = "realPlayerMatchRate"; public static readonly string _KEY_winningStreakDiffCount = "winningStreakDiffCount"; public static readonly string _KEY_winningStreakDiff = "winningStreakDiff"; public static readonly string _KEY_registrationTime = "registrationTime"; public static readonly string _KEY_registrationMailTitle = "registrationMailTitle"; public static readonly string _KEY_registrationMailTxt = "registrationMailTxt"; public static readonly string _KEY_sameRealmTrialsTime = "sameRealmTrialsTime"; public static readonly string _KEY_sameRealmTrialsRobotCount = "sameRealmTrialsRobotCount"; public static readonly string _KEY_AuditionGroups_4_0 = "AuditionGroups_4_0"; public static readonly string _KEY_AuditionGroups_4_1 = "AuditionGroups_4_1"; public static readonly string _KEY_AuditionGroups_4_2 = "AuditionGroups_4_2"; public static readonly string _KEY_AuditionGroups_4_3 = "AuditionGroups_4_3"; public static readonly string _KEY_AuditionGroupCount_4_0 = "AuditionGroupCount_4_0"; public static readonly string _KEY_AuditionGroupCount_4_1 = "AuditionGroupCount_4_1"; public static readonly string _KEY_AuditionGroupCount_4_2 = "AuditionGroupCount_4_2"; public static readonly string _KEY_AuditionGroupCount_4_3 = "AuditionGroupCount_4_3"; public static readonly string _KEY_CrossRealmGroups_4_0 = "CrossRealmGroups_4_0"; public static readonly string _KEY_CrossRealmGroups_4_1 = "CrossRealmGroups_4_1"; public static readonly string _KEY_CrossRealmGroups_4_2 = "CrossRealmGroups_4_2"; public static readonly string _KEY_CrossRealmGroups_4_3 = "CrossRealmGroups_4_3"; public static readonly string _KEY_CrossRealmGroupCount_4_0 = "CrossRealmGroupCount_4_0"; public static readonly string _KEY_CrossRealmGroupCount_4_1 = "CrossRealmGroupCount_4_1"; public static readonly string _KEY_CrossRealmGroupCount_4_2 = "CrossRealmGroupCount_4_2"; public static readonly string _KEY_CrossRealmGroupCount_4_3 = "CrossRealmGroupCount_4_3"; public static readonly string _KEY_manualBattleTime = "manualBattleTime"; public static readonly string _KEY_autoBattleTime = "autoBattleTime"; public static readonly string _KEY_trialsLockTime = "trialsLockTime"; public static readonly string _KEY_FinalLockTime = "FinalLockTime"; public static readonly string _KEY_sameRealmTrialsDailyRound_2_0 = "sameRealmTrialsDailyRound_2_0"; public static readonly string _KEY_sameRealmTrialsDailyRound_2_1 = "sameRealmTrialsDailyRound_2_1"; public static readonly string _KEY_crossRealmTrialsTime = "crossRealmTrialsTime"; public static readonly string _KEY_crossRealmTrialsDailyRound_2_0 = "crossRealmTrialsDailyRound_2_0"; public static readonly string _KEY_crossRealmTrialsDailyRound_2_1 = "crossRealmTrialsDailyRound_2_1"; public static readonly string _KEY_finalsTime = "finalsTime"; public static readonly string _KEY_finalsDailyRound_4_0 = "finalsDailyRound_4_0"; public static readonly string _KEY_finalsDailyRound_4_1 = "finalsDailyRound_4_1"; public static readonly string _KEY_finalsDailyRound_4_2 = "finalsDailyRound_4_2"; public static readonly string _KEY_finalsDailyRound_4_3 = "finalsDailyRound_4_3"; public static readonly string _KEY_peakMatchPreTime = "peakMatchPreTime"; public static readonly string _KEY_peakRoundTime = "peakRoundTime"; public static readonly string _KEY_peakBattleTime = "peakBattleTime"; public static readonly string _KEY_peakTrialWeight_5_0 = "peakTrialWeight_5_0"; public static readonly string _KEY_peakTrialWeight_5_1 = "peakTrialWeight_5_1"; public static readonly string _KEY_peakTrialWeight_5_2 = "peakTrialWeight_5_2"; public static readonly string _KEY_peakTrialWeight_5_3 = "peakTrialWeight_5_3"; public static readonly string _KEY_peakTrialWeight_5_4 = "peakTrialWeight_5_4"; public static readonly string _KEY_promotionMailTitle = "promotionMailTitle"; public static readonly string _KEY_promotionMailTxt = "promotionMailTxt"; public static readonly string _KEY_dailyLikesCount = "dailyLikesCount"; public static readonly string _KEY_likesDropId = "likesDropId"; public static readonly string _KEY_NoviceCount = "NoviceCount"; public static readonly string _KEY_NoviceProtectDay = "NoviceProtectDay"; public static readonly string _KEY_DailyNoviceProtectCount = "DailyNoviceProtectCount"; public static readonly string _KEY_preheatDay = "preheatDay"; public int type { get; set; } // 竞技场类型 public int awardWeek { get; set; } // //周奖励发放星期 public string awardTime { get; set; } // 奖励时间,时间格式一定要用hh:mm:ss public int refreshItem_type { get; set; } // 刷新消耗type public int refreshItem_id { get; set; } // 刷新消耗id public int refreshItem_value { get; set; } // 刷新消耗value(服务端用),客户端配置为常量表id=14 public int refresh_cd { get; set; } // 刷新cd(秒) public int ticketId { get; set; } // 挑战券id public int resetRetainCount { get; set; } // 赛季重置保留人数 public int defaultTicket { get; set; } // 默认竞技场门票上限 public int unlockTicket { get; set; } // 解锁竞技场时获得门票数量(不记为开箱获得的数量) public int rankCheckMax { get; set; } // 排行榜查看数量上限 public int messageMax { get; set; } // 战报保持条目上限 public int protectTime { get; set; } // 竞技场被攻击失败后保护时间(秒) public int defaultScore { get; set; } // 竞技场初始积分 public int protectOff { get; set; } // 排行榜的前X名玩家,不会受到保护期无法被匹配到的机制的保护 public string mailTitle { get; set; } // 邮件标题(废弃) public int seasonResetDay { get; set; } // 赛季重置天数(废弃) public int initTicketCount { get; set; } // 初始挑战券数量(废弃) public int dailyChallengeTimes { get; set; } // 每日挑战券数量(废弃) public string seasonStartDate { get; set; } // 初始赛季日期(废弃) public string challengeBeginTime { get; set; } // 开启时间(废弃) public string challengeEndTime { get; set; } // 挑战结束时间(废弃) public string mailTxt { get; set; } // 邮件文本内容(废弃) public string seasonMailTitle { get; set; } // 邮件标题(废弃) public string seasonMailTxt { get; set; } // 邮件文本内容(废弃) public int starCionInterval { get; set; } // 星币获取时间间隔(s)(废弃) public int starCionBoxMax { get; set; } // 星币宝箱最大存储数(废弃) public int integralInterval { get; set; } // 王者积分获取时间间隔(s)(废弃) public int MainlandId { get; set; } // 副本id(废弃) public int reductionRate { get; set; } // 常规竞技场赛 季重置积分衰减千分比(废弃) public int realPlayerMatchRate { get; set; } // //真人匹配概率千分比(废弃) public int winningStreakDiffCount { get; set; } // //连胜增加难度要求次数(废弃) public int winningStreakDiff { get; set; } // //连胜增加难度(废弃) public string registrationTime { get; set; } // //报名时间 //W{第几天}_时间 //第三天5::00-/第三天17:00 //W3_5:00-W5:17:00(废弃) public string registrationMailTitle { get; set; } // //报名邮件标题(废弃) public string registrationMailTxt { get; set; } // //报名邮件内容(废弃) public string sameRealmTrialsTime { get; set; } // //海选赛时间 //该时间段每天战斗时间都会进行战斗(废弃) public int sameRealmTrialsRobotCount { get; set; } // //本服选拔赛机器人填充数 //报名人数不够这个数量会填充到这个数量(废弃) public int[] AuditionGroups { get; set; } // //巅峰竞技场海选赛每轮分组数(废弃) public int[] AuditionGroupCount { get; set; } // //巅峰竞技场海选赛每轮每组晋级人数(废弃) public int[] CrossRealmGroups { get; set; } // //巅峰竞技场小组赛每轮分组数(废弃) public int[] CrossRealmGroupCount { get; set; } // //巅峰竞技场小组赛每轮每组晋级人数(废弃) public string manualBattleTime { get; set; } // //选拔赛手动战斗时间(废弃) public string autoBattleTime { get; set; } // //选拔赛自动战斗时间(废弃) public string trialsLockTime { get; set; } // 选拔赛锁定阵容时间(废弃) public string FinalLockTime { get; set; } // 决赛赛锁定阵容时间(废弃) public int[] sameRealmTrialsDailyRound { get; set; } // /本服选拔赛每天轮次(废弃) public string crossRealmTrialsTime { get; set; } // //小组赛赛时间 //该时间段每天战斗时间都会进行战斗(废弃) public int[] crossRealmTrialsDailyRound { get; set; } // /本服选拔赛每天轮次(废弃) public string finalsTime { get; set; } // //决赛时间 //该时间段每天战斗时间都会进行战斗(废弃) public int[] finalsDailyRound { get; set; } // //决赛轮次(废弃) public int peakMatchPreTime { get; set; } // //比赛前置锁定时间s //不要随便修改 (废弃) public int peakRoundTime { get; set; } // //比赛一轮间隔时间(废弃) public string peakBattleTime { get; set; } // //战斗时间(废弃) public int[] peakTrialWeight { get; set; } // //选拔赛匹配权重(废弃) public string promotionMailTitle { get; set; } // 晋级邮件标题(废弃) public string promotionMailTxt { get; set; } // 晋级邮件文本内容(废弃) public int dailyLikesCount { get; set; } // 每日点赞数最多3个(废弃) public int likesDropId { get; set; } // 点赞奖励(废弃) public int NoviceCount { get; set; } // 新手前N次全匹配机器人(废弃) public int NoviceProtectDay { get; set; } // 新手前N天保护(废弃) public int DailyNoviceProtectCount { get; set; } // 每天新手保护次数(废弃) public int preheatDay { get; set; } // //巅峰竞技场预热天数(废弃) public Dictionary listDic = new Dictionary(); public ArenaParamDesc() { AuditionGroups = new int[4]; listDic.Add("auditionGroups", typeof(int)); AuditionGroupCount = new int[4]; listDic.Add("auditionGroupCount", typeof(int)); CrossRealmGroups = new int[4]; listDic.Add("crossRealmGroups", typeof(int)); CrossRealmGroupCount = new int[4]; listDic.Add("crossRealmGroupCount", typeof(int)); sameRealmTrialsDailyRound = new int[2]; listDic.Add("sameRealmTrialsDailyRound", typeof(int)); crossRealmTrialsDailyRound = new int[2]; listDic.Add("crossRealmTrialsDailyRound", typeof(int)); finalsDailyRound = new int[4]; listDic.Add("finalsDailyRound", typeof(int)); peakTrialWeight = new int[5]; listDic.Add("peakTrialWeight", typeof(int)); } public int GetKey1() { return type; } public bool ReadItem(TabTextFile txf, bool readKeyOnly) { type = txf.Get(_KEY_type); if(readKeyOnly) { return true; } awardWeek = txf.Get(_KEY_awardWeek); awardTime = txf.Get(_KEY_awardTime); refreshItem_type = txf.Get(_KEY_refreshItem_type); refreshItem_id = txf.Get(_KEY_refreshItem_id); refreshItem_value = txf.Get(_KEY_refreshItem_value); refresh_cd = txf.Get(_KEY_refresh_cd); ticketId = txf.Get(_KEY_ticketId); resetRetainCount = txf.Get(_KEY_resetRetainCount); defaultTicket = txf.Get(_KEY_defaultTicket); unlockTicket = txf.Get(_KEY_unlockTicket); rankCheckMax = txf.Get(_KEY_rankCheckMax); messageMax = txf.Get(_KEY_messageMax); protectTime = txf.Get(_KEY_protectTime); defaultScore = txf.Get(_KEY_defaultScore); protectOff = txf.Get(_KEY_protectOff); mailTitle = txf.Get(_KEY_mailTitle); seasonResetDay = txf.Get(_KEY_seasonResetDay); initTicketCount = txf.Get(_KEY_initTicketCount); dailyChallengeTimes = txf.Get(_KEY_dailyChallengeTimes); seasonStartDate = txf.Get(_KEY_seasonStartDate); challengeBeginTime = txf.Get(_KEY_challengeBeginTime); challengeEndTime = txf.Get(_KEY_challengeEndTime); mailTxt = txf.Get(_KEY_mailTxt); seasonMailTitle = txf.Get(_KEY_seasonMailTitle); seasonMailTxt = txf.Get(_KEY_seasonMailTxt); starCionInterval = txf.Get(_KEY_starCionInterval); starCionBoxMax = txf.Get(_KEY_starCionBoxMax); integralInterval = txf.Get(_KEY_integralInterval); MainlandId = txf.Get(_KEY_MainlandId); reductionRate = txf.Get(_KEY_reductionRate); realPlayerMatchRate = txf.Get(_KEY_realPlayerMatchRate); winningStreakDiffCount = txf.Get(_KEY_winningStreakDiffCount); winningStreakDiff = txf.Get(_KEY_winningStreakDiff); registrationTime = txf.Get(_KEY_registrationTime); registrationMailTitle = txf.Get(_KEY_registrationMailTitle); registrationMailTxt = txf.Get(_KEY_registrationMailTxt); sameRealmTrialsTime = txf.Get(_KEY_sameRealmTrialsTime); sameRealmTrialsRobotCount = txf.Get(_KEY_sameRealmTrialsRobotCount); AuditionGroups[0] = txf.Get(_KEY_AuditionGroups_4_0); AuditionGroups[1] = txf.Get(_KEY_AuditionGroups_4_1); AuditionGroups[2] = txf.Get(_KEY_AuditionGroups_4_2); AuditionGroups[3] = txf.Get(_KEY_AuditionGroups_4_3); AuditionGroupCount[0] = txf.Get(_KEY_AuditionGroupCount_4_0); AuditionGroupCount[1] = txf.Get(_KEY_AuditionGroupCount_4_1); AuditionGroupCount[2] = txf.Get(_KEY_AuditionGroupCount_4_2); AuditionGroupCount[3] = txf.Get(_KEY_AuditionGroupCount_4_3); CrossRealmGroups[0] = txf.Get(_KEY_CrossRealmGroups_4_0); CrossRealmGroups[1] = txf.Get(_KEY_CrossRealmGroups_4_1); CrossRealmGroups[2] = txf.Get(_KEY_CrossRealmGroups_4_2); CrossRealmGroups[3] = txf.Get(_KEY_CrossRealmGroups_4_3); CrossRealmGroupCount[0] = txf.Get(_KEY_CrossRealmGroupCount_4_0); CrossRealmGroupCount[1] = txf.Get(_KEY_CrossRealmGroupCount_4_1); CrossRealmGroupCount[2] = txf.Get(_KEY_CrossRealmGroupCount_4_2); CrossRealmGroupCount[3] = txf.Get(_KEY_CrossRealmGroupCount_4_3); manualBattleTime = txf.Get(_KEY_manualBattleTime); autoBattleTime = txf.Get(_KEY_autoBattleTime); trialsLockTime = txf.Get(_KEY_trialsLockTime); FinalLockTime = txf.Get(_KEY_FinalLockTime); sameRealmTrialsDailyRound[0] = txf.Get(_KEY_sameRealmTrialsDailyRound_2_0); sameRealmTrialsDailyRound[1] = txf.Get(_KEY_sameRealmTrialsDailyRound_2_1); crossRealmTrialsTime = txf.Get(_KEY_crossRealmTrialsTime); crossRealmTrialsDailyRound[0] = txf.Get(_KEY_crossRealmTrialsDailyRound_2_0); crossRealmTrialsDailyRound[1] = txf.Get(_KEY_crossRealmTrialsDailyRound_2_1); finalsTime = txf.Get(_KEY_finalsTime); finalsDailyRound[0] = txf.Get(_KEY_finalsDailyRound_4_0); finalsDailyRound[1] = txf.Get(_KEY_finalsDailyRound_4_1); finalsDailyRound[2] = txf.Get(_KEY_finalsDailyRound_4_2); finalsDailyRound[3] = txf.Get(_KEY_finalsDailyRound_4_3); peakMatchPreTime = txf.Get(_KEY_peakMatchPreTime); peakRoundTime = txf.Get(_KEY_peakRoundTime); peakBattleTime = txf.Get(_KEY_peakBattleTime); peakTrialWeight[0] = txf.Get(_KEY_peakTrialWeight_5_0); peakTrialWeight[1] = txf.Get(_KEY_peakTrialWeight_5_1); peakTrialWeight[2] = txf.Get(_KEY_peakTrialWeight_5_2); peakTrialWeight[3] = txf.Get(_KEY_peakTrialWeight_5_3); peakTrialWeight[4] = txf.Get(_KEY_peakTrialWeight_5_4); promotionMailTitle = txf.Get(_KEY_promotionMailTitle); promotionMailTxt = txf.Get(_KEY_promotionMailTxt); dailyLikesCount = txf.Get(_KEY_dailyLikesCount); likesDropId = txf.Get(_KEY_likesDropId); NoviceCount = txf.Get(_KEY_NoviceCount); NoviceProtectDay = txf.Get(_KEY_NoviceProtectDay); DailyNoviceProtectCount = txf.Get(_KEY_DailyNoviceProtectCount); preheatDay = txf.Get(_KEY_preheatDay); return true; } public bool ReadItemBin(TabBinFile txf, bool readKeyOnly) { type = txf.GetintByIndex(_KEY_type); if(readKeyOnly) { return true; } awardWeek = txf.GetintByIndex(_KEY_awardWeek); awardTime = txf.GetstringByIndex(_KEY_awardTime); refreshItem_type = txf.GetintByIndex(_KEY_refreshItem_type); refreshItem_id = txf.GetintByIndex(_KEY_refreshItem_id); refreshItem_value = txf.GetintByIndex(_KEY_refreshItem_value); refresh_cd = txf.GetintByIndex(_KEY_refresh_cd); ticketId = txf.GetintByIndex(_KEY_ticketId); resetRetainCount = txf.GetintByIndex(_KEY_resetRetainCount); defaultTicket = txf.GetintByIndex(_KEY_defaultTicket); unlockTicket = txf.GetintByIndex(_KEY_unlockTicket); rankCheckMax = txf.GetintByIndex(_KEY_rankCheckMax); messageMax = txf.GetintByIndex(_KEY_messageMax); protectTime = txf.GetintByIndex(_KEY_protectTime); defaultScore = txf.GetintByIndex(_KEY_defaultScore); protectOff = txf.GetintByIndex(_KEY_protectOff); mailTitle = txf.GetstringByIndex(_KEY_mailTitle); seasonResetDay = txf.GetintByIndex(_KEY_seasonResetDay); initTicketCount = txf.GetintByIndex(_KEY_initTicketCount); dailyChallengeTimes = txf.GetintByIndex(_KEY_dailyChallengeTimes); seasonStartDate = txf.GetstringByIndex(_KEY_seasonStartDate); challengeBeginTime = txf.GetstringByIndex(_KEY_challengeBeginTime); challengeEndTime = txf.GetstringByIndex(_KEY_challengeEndTime); mailTxt = txf.GetstringByIndex(_KEY_mailTxt); seasonMailTitle = txf.GetstringByIndex(_KEY_seasonMailTitle); seasonMailTxt = txf.GetstringByIndex(_KEY_seasonMailTxt); starCionInterval = txf.GetintByIndex(_KEY_starCionInterval); starCionBoxMax = txf.GetintByIndex(_KEY_starCionBoxMax); integralInterval = txf.GetintByIndex(_KEY_integralInterval); MainlandId = txf.GetintByIndex(_KEY_MainlandId); reductionRate = txf.GetintByIndex(_KEY_reductionRate); realPlayerMatchRate = txf.GetintByIndex(_KEY_realPlayerMatchRate); winningStreakDiffCount = txf.GetintByIndex(_KEY_winningStreakDiffCount); winningStreakDiff = txf.GetintByIndex(_KEY_winningStreakDiff); registrationTime = txf.GetstringByIndex(_KEY_registrationTime); registrationMailTitle = txf.GetstringByIndex(_KEY_registrationMailTitle); registrationMailTxt = txf.GetstringByIndex(_KEY_registrationMailTxt); sameRealmTrialsTime = txf.GetstringByIndex(_KEY_sameRealmTrialsTime); sameRealmTrialsRobotCount = txf.GetintByIndex(_KEY_sameRealmTrialsRobotCount); AuditionGroups[0] = txf.GetintByIndex(_KEY_AuditionGroups_4_0); AuditionGroups[1] = txf.GetintByIndex(_KEY_AuditionGroups_4_1); AuditionGroups[2] = txf.GetintByIndex(_KEY_AuditionGroups_4_2); AuditionGroups[3] = txf.GetintByIndex(_KEY_AuditionGroups_4_3); AuditionGroupCount[0] = txf.GetintByIndex(_KEY_AuditionGroupCount_4_0); AuditionGroupCount[1] = txf.GetintByIndex(_KEY_AuditionGroupCount_4_1); AuditionGroupCount[2] = txf.GetintByIndex(_KEY_AuditionGroupCount_4_2); AuditionGroupCount[3] = txf.GetintByIndex(_KEY_AuditionGroupCount_4_3); CrossRealmGroups[0] = txf.GetintByIndex(_KEY_CrossRealmGroups_4_0); CrossRealmGroups[1] = txf.GetintByIndex(_KEY_CrossRealmGroups_4_1); CrossRealmGroups[2] = txf.GetintByIndex(_KEY_CrossRealmGroups_4_2); CrossRealmGroups[3] = txf.GetintByIndex(_KEY_CrossRealmGroups_4_3); CrossRealmGroupCount[0] = txf.GetintByIndex(_KEY_CrossRealmGroupCount_4_0); CrossRealmGroupCount[1] = txf.GetintByIndex(_KEY_CrossRealmGroupCount_4_1); CrossRealmGroupCount[2] = txf.GetintByIndex(_KEY_CrossRealmGroupCount_4_2); CrossRealmGroupCount[3] = txf.GetintByIndex(_KEY_CrossRealmGroupCount_4_3); manualBattleTime = txf.GetstringByIndex(_KEY_manualBattleTime); autoBattleTime = txf.GetstringByIndex(_KEY_autoBattleTime); trialsLockTime = txf.GetstringByIndex(_KEY_trialsLockTime); FinalLockTime = txf.GetstringByIndex(_KEY_FinalLockTime); sameRealmTrialsDailyRound[0] = txf.GetintByIndex(_KEY_sameRealmTrialsDailyRound_2_0); sameRealmTrialsDailyRound[1] = txf.GetintByIndex(_KEY_sameRealmTrialsDailyRound_2_1); crossRealmTrialsTime = txf.GetstringByIndex(_KEY_crossRealmTrialsTime); crossRealmTrialsDailyRound[0] = txf.GetintByIndex(_KEY_crossRealmTrialsDailyRound_2_0); crossRealmTrialsDailyRound[1] = txf.GetintByIndex(_KEY_crossRealmTrialsDailyRound_2_1); finalsTime = txf.GetstringByIndex(_KEY_finalsTime); finalsDailyRound[0] = txf.GetintByIndex(_KEY_finalsDailyRound_4_0); finalsDailyRound[1] = txf.GetintByIndex(_KEY_finalsDailyRound_4_1); finalsDailyRound[2] = txf.GetintByIndex(_KEY_finalsDailyRound_4_2); finalsDailyRound[3] = txf.GetintByIndex(_KEY_finalsDailyRound_4_3); peakMatchPreTime = txf.GetintByIndex(_KEY_peakMatchPreTime); peakRoundTime = txf.GetintByIndex(_KEY_peakRoundTime); peakBattleTime = txf.GetstringByIndex(_KEY_peakBattleTime); peakTrialWeight[0] = txf.GetintByIndex(_KEY_peakTrialWeight_5_0); peakTrialWeight[1] = txf.GetintByIndex(_KEY_peakTrialWeight_5_1); peakTrialWeight[2] = txf.GetintByIndex(_KEY_peakTrialWeight_5_2); peakTrialWeight[3] = txf.GetintByIndex(_KEY_peakTrialWeight_5_3); peakTrialWeight[4] = txf.GetintByIndex(_KEY_peakTrialWeight_5_4); promotionMailTitle = txf.GetstringByIndex(_KEY_promotionMailTitle); promotionMailTxt = txf.GetstringByIndex(_KEY_promotionMailTxt); dailyLikesCount = txf.GetintByIndex(_KEY_dailyLikesCount); likesDropId = txf.GetintByIndex(_KEY_likesDropId); NoviceCount = txf.GetintByIndex(_KEY_NoviceCount); NoviceProtectDay = txf.GetintByIndex(_KEY_NoviceProtectDay); DailyNoviceProtectCount = txf.GetintByIndex(_KEY_DailyNoviceProtectCount); preheatDay = txf.GetintByIndex(_KEY_preheatDay); return true; } #if UNITY_2019_1_OR_NEWER public ArenaParamDesc ReadItemInIL(TabBinFile txf ,int keyCount = 0) { byte[] ret = txf.GetLength(); if (ret.Length == 0) { return null; } return SerializeObj.ConfigDeSerialize(this, ret, txf.ColPosList, txf.listPosList, this.listDic, txf.m_stringBlock, keyCount); } #endif }