//============================================ //--4>: // Exported by ExcelConfigExport // // 此代码为工具根据配置自动生成, 请不要修改 // //============================================ using System; using Sog; using System.Collections.Generic; #if UNITY_2019_1_OR_NEWER using GameLogic; #endif public partial class MateDescMgr : IConfigManager { //Singleton private static MateDescMgr _instance; private static readonly object syslock = new object(); public static MateDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new MateDescMgr(); }}} return _instance; }} public class ItemData { public MateDesc 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 MateDesc() }; 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 MateDesc() }; 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 MateDesc 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 MateDesc { public static readonly string _KEY_id = "id"; public static readonly string _KEY_rarity = "rarity"; public static readonly string _KEY_initMateLevel = "initMateLevel"; public static readonly string _KEY_initMateRank = "initMateRank"; public static readonly string _KEY_initMateStar = "initMateStar"; public static readonly string _KEY_baseAtk = "baseAtk"; public static readonly string _KEY_baseDef = "baseDef"; public static readonly string _KEY_baseHp = "baseHp"; public static readonly string _KEY_baseSpeed = "baseSpeed"; public static readonly string _KEY_specialPropType_2_0 = "specialPropType_2_0"; public static readonly string _KEY_specialPropType_2_1 = "specialPropType_2_1"; public static readonly string _KEY_fragmentID = "fragmentID"; public static readonly string _KEY_fragmentNum = "fragmentNum"; public static readonly string _KEY_initFriendshipLevel = "initFriendshipLevel"; public static readonly string _KEY_unlock = "unlock"; public static readonly string _KEY_icon = "icon"; public static readonly string _KEY_mateType = "mateType"; public static readonly string _KEY_battleLocation = "battleLocation"; public static readonly string _KEY_mateTag_3_0 = "mateTag_3_0"; public static readonly string _KEY_mateTag_3_1 = "mateTag_3_1"; public static readonly string _KEY_mateTag_3_2 = "mateTag_3_2"; public static readonly string _KEY_unlockRewardType = "unlockRewardType"; public static readonly string _KEY_unlockRewardId = "unlockRewardId"; public static readonly string _KEY_unlockRewardNum = "unlockRewardNum"; public static readonly string _KEY_petPanter_10_0 = "petPanter_10_0"; public static readonly string _KEY_petPanter_10_1 = "petPanter_10_1"; public static readonly string _KEY_petPanter_10_2 = "petPanter_10_2"; public static readonly string _KEY_petPanter_10_3 = "petPanter_10_3"; public static readonly string _KEY_petPanter_10_4 = "petPanter_10_4"; public static readonly string _KEY_petPanter_10_5 = "petPanter_10_5"; public static readonly string _KEY_petPanter_10_6 = "petPanter_10_6"; public static readonly string _KEY_petPanter_10_7 = "petPanter_10_7"; public static readonly string _KEY_petPanter_10_8 = "petPanter_10_8"; public static readonly string _KEY_petPanter_10_9 = "petPanter_10_9"; public static readonly string _KEY_starAwardNum = "starAwardNum"; public static readonly string _KEY_compositeNum = "compositeNum"; public static readonly string _KEY_preferenceGift_10_0 = "preferenceGift_10_0"; public static readonly string _KEY_preferenceGift_10_1 = "preferenceGift_10_1"; public static readonly string _KEY_preferenceGift_10_2 = "preferenceGift_10_2"; public static readonly string _KEY_preferenceGift_10_3 = "preferenceGift_10_3"; public static readonly string _KEY_preferenceGift_10_4 = "preferenceGift_10_4"; public static readonly string _KEY_preferenceGift_10_5 = "preferenceGift_10_5"; public static readonly string _KEY_preferenceGift_10_6 = "preferenceGift_10_6"; public static readonly string _KEY_preferenceGift_10_7 = "preferenceGift_10_7"; public static readonly string _KEY_preferenceGift_10_8 = "preferenceGift_10_8"; public static readonly string _KEY_preferenceGift_10_9 = "preferenceGift_10_9"; public static readonly string _KEY_preferenceMod_10_0 = "preferenceMod_10_0"; public static readonly string _KEY_preferenceMod_10_1 = "preferenceMod_10_1"; public static readonly string _KEY_preferenceMod_10_2 = "preferenceMod_10_2"; public static readonly string _KEY_preferenceMod_10_3 = "preferenceMod_10_3"; public static readonly string _KEY_preferenceMod_10_4 = "preferenceMod_10_4"; public static readonly string _KEY_preferenceMod_10_5 = "preferenceMod_10_5"; public static readonly string _KEY_preferenceMod_10_6 = "preferenceMod_10_6"; public static readonly string _KEY_preferenceMod_10_7 = "preferenceMod_10_7"; public static readonly string _KEY_preferenceMod_10_8 = "preferenceMod_10_8"; public static readonly string _KEY_preferenceMod_10_9 = "preferenceMod_10_9"; public static readonly string _KEY_unlockStarAwardNum = "unlockStarAwardNum"; public static readonly string _KEY_attackShowId = "attackShowId"; public static readonly string _KEY_skillBattle = "skillBattle"; public static readonly string _KEY_skillBattleLevelUp_20_0 = "skillBattleLevelUp_20_0"; public static readonly string _KEY_skillBattleLevelUp_20_1 = "skillBattleLevelUp_20_1"; public static readonly string _KEY_skillBattleLevelUp_20_2 = "skillBattleLevelUp_20_2"; public static readonly string _KEY_skillBattleLevelUp_20_3 = "skillBattleLevelUp_20_3"; public static readonly string _KEY_skillBattleLevelUp_20_4 = "skillBattleLevelUp_20_4"; public static readonly string _KEY_skillBattleLevelUp_20_5 = "skillBattleLevelUp_20_5"; public static readonly string _KEY_skillBattleLevelUp_20_6 = "skillBattleLevelUp_20_6"; public static readonly string _KEY_skillBattleLevelUp_20_7 = "skillBattleLevelUp_20_7"; public static readonly string _KEY_skillBattleLevelUp_20_8 = "skillBattleLevelUp_20_8"; public static readonly string _KEY_skillBattleLevelUp_20_9 = "skillBattleLevelUp_20_9"; public static readonly string _KEY_skillBattleLevelUp_20_10 = "skillBattleLevelUp_20_10"; public static readonly string _KEY_skillBattleLevelUp_20_11 = "skillBattleLevelUp_20_11"; public static readonly string _KEY_skillBattleLevelUp_20_12 = "skillBattleLevelUp_20_12"; public static readonly string _KEY_skillBattleLevelUp_20_13 = "skillBattleLevelUp_20_13"; public static readonly string _KEY_skillBattleLevelUp_20_14 = "skillBattleLevelUp_20_14"; public static readonly string _KEY_skillBattleLevelUp_20_15 = "skillBattleLevelUp_20_15"; public static readonly string _KEY_skillBattleLevelUp_20_16 = "skillBattleLevelUp_20_16"; public static readonly string _KEY_skillBattleLevelUp_20_17 = "skillBattleLevelUp_20_17"; public static readonly string _KEY_skillBattleLevelUp_20_18 = "skillBattleLevelUp_20_18"; public static readonly string _KEY_skillBattleLevelUp_20_19 = "skillBattleLevelUp_20_19"; public static readonly string _KEY_skillAssist = "skillAssist"; public static readonly string _KEY_skillAssistLevelUp_20_0 = "skillAssistLevelUp_20_0"; public static readonly string _KEY_skillAssistLevelUp_20_1 = "skillAssistLevelUp_20_1"; public static readonly string _KEY_skillAssistLevelUp_20_2 = "skillAssistLevelUp_20_2"; public static readonly string _KEY_skillAssistLevelUp_20_3 = "skillAssistLevelUp_20_3"; public static readonly string _KEY_skillAssistLevelUp_20_4 = "skillAssistLevelUp_20_4"; public static readonly string _KEY_skillAssistLevelUp_20_5 = "skillAssistLevelUp_20_5"; public static readonly string _KEY_skillAssistLevelUp_20_6 = "skillAssistLevelUp_20_6"; public static readonly string _KEY_skillAssistLevelUp_20_7 = "skillAssistLevelUp_20_7"; public static readonly string _KEY_skillAssistLevelUp_20_8 = "skillAssistLevelUp_20_8"; public static readonly string _KEY_skillAssistLevelUp_20_9 = "skillAssistLevelUp_20_9"; public static readonly string _KEY_skillAssistLevelUp_20_10 = "skillAssistLevelUp_20_10"; public static readonly string _KEY_skillAssistLevelUp_20_11 = "skillAssistLevelUp_20_11"; public static readonly string _KEY_skillAssistLevelUp_20_12 = "skillAssistLevelUp_20_12"; public static readonly string _KEY_skillAssistLevelUp_20_13 = "skillAssistLevelUp_20_13"; public static readonly string _KEY_skillAssistLevelUp_20_14 = "skillAssistLevelUp_20_14"; public static readonly string _KEY_skillAssistLevelUp_20_15 = "skillAssistLevelUp_20_15"; public static readonly string _KEY_skillAssistLevelUp_20_16 = "skillAssistLevelUp_20_16"; public static readonly string _KEY_skillAssistLevelUp_20_17 = "skillAssistLevelUp_20_17"; public static readonly string _KEY_skillAssistLevelUp_20_18 = "skillAssistLevelUp_20_18"; public static readonly string _KEY_skillAssistLevelUp_20_19 = "skillAssistLevelUp_20_19"; public int id { get; set; } // // id public int rarity { get; set; } // //角色资质 public int initMateLevel { get; set; } // //起始伙伴等级MateLevel表的id public int initMateRank { get; set; } // //起始伙伴等级MateRank表的id public int initMateStar { get; set; } // //起始伙伴等级MateStar表的id public int baseAtk { get; set; } // //基础属性(攻击) public int baseDef { get; set; } // //基础属性(防御) public int baseHp { get; set; } // //基础属性(生命) public int baseSpeed { get; set; } // //基础属性(速度) public int[] specialPropType { get; set; } // //二级属性类型 public int fragmentID { get; set; } // //分解获得的道具ID public int fragmentNum { get; set; } // //分解获得的道具数量 public int initFriendshipLevel { get; set; } // //起始好感度等级MateFriendship表的id public int unlock { get; set; } // //是否可见 public int icon { get; set; } // //伙伴头像,Head表id public int mateType { get; set; } // //种族 public int battleLocation { get; set; } // //站位 public int[] mateTag { get; set; } // //标签 public int unlockRewardType { get; set; } // //图鉴奖励类型 public int unlockRewardId { get; set; } // //图鉴奖励id public int unlockRewardNum { get; set; } // //图鉴奖励数量 public int[] petPanter { get; set; } // //羁绊,填PetPanter表id public int starAwardNum { get; set; } // //升星可得星星道具数量 public int compositeNum { get; set; } // //合成角色所需的碎片数量 public int[] preferenceGift { get; set; } // //偏好的礼物ID public int[] preferenceMod { get; set; } // //额外提高的好感度 public int unlockStarAwardNum { get; set; } // //解锁可得星星道具数量 public int attackShowId { get; set; } // //普攻表现 public int skillBattle { get; set; } // //出场技能id public int[] skillBattleLevelUp { get; set; } // //出战技能升级时间点(Mate等级) public int skillAssist { get; set; } // //助战技能id public int[] skillAssistLevelUp { get; set; } // //助战技能升级时间点(House等级) public Dictionary listDic = new Dictionary(); public MateDesc() { specialPropType = new int[2]; listDic.Add("specialPropType", typeof(int)); mateTag = new int[3]; listDic.Add("mateTag", typeof(int)); petPanter = new int[10]; listDic.Add("petPanter", typeof(int)); preferenceGift = new int[10]; listDic.Add("preferenceGift", typeof(int)); preferenceMod = new int[10]; listDic.Add("preferenceMod", typeof(int)); skillBattleLevelUp = new int[20]; listDic.Add("skillBattleLevelUp", typeof(int)); skillAssistLevelUp = new int[20]; listDic.Add("skillAssistLevelUp", typeof(int)); } public int GetKey1() { return id; } public bool ReadItem(TabTextFile txf, bool readKeyOnly) { id = txf.Get(_KEY_id); if(readKeyOnly) { return true; } rarity = txf.Get(_KEY_rarity); initMateLevel = txf.Get(_KEY_initMateLevel); initMateRank = txf.Get(_KEY_initMateRank); initMateStar = txf.Get(_KEY_initMateStar); baseAtk = txf.Get(_KEY_baseAtk); baseDef = txf.Get(_KEY_baseDef); baseHp = txf.Get(_KEY_baseHp); baseSpeed = txf.Get(_KEY_baseSpeed); specialPropType[0] = txf.Get(_KEY_specialPropType_2_0); specialPropType[1] = txf.Get(_KEY_specialPropType_2_1); fragmentID = txf.Get(_KEY_fragmentID); fragmentNum = txf.Get(_KEY_fragmentNum); initFriendshipLevel = txf.Get(_KEY_initFriendshipLevel); unlock = txf.Get(_KEY_unlock); icon = txf.Get(_KEY_icon); mateType = txf.Get(_KEY_mateType); battleLocation = txf.Get(_KEY_battleLocation); mateTag[0] = txf.Get(_KEY_mateTag_3_0); mateTag[1] = txf.Get(_KEY_mateTag_3_1); mateTag[2] = txf.Get(_KEY_mateTag_3_2); unlockRewardType = txf.Get(_KEY_unlockRewardType); unlockRewardId = txf.Get(_KEY_unlockRewardId); unlockRewardNum = txf.Get(_KEY_unlockRewardNum); petPanter[0] = txf.Get(_KEY_petPanter_10_0); petPanter[1] = txf.Get(_KEY_petPanter_10_1); petPanter[2] = txf.Get(_KEY_petPanter_10_2); petPanter[3] = txf.Get(_KEY_petPanter_10_3); petPanter[4] = txf.Get(_KEY_petPanter_10_4); petPanter[5] = txf.Get(_KEY_petPanter_10_5); petPanter[6] = txf.Get(_KEY_petPanter_10_6); petPanter[7] = txf.Get(_KEY_petPanter_10_7); petPanter[8] = txf.Get(_KEY_petPanter_10_8); petPanter[9] = txf.Get(_KEY_petPanter_10_9); starAwardNum = txf.Get(_KEY_starAwardNum); compositeNum = txf.Get(_KEY_compositeNum); preferenceGift[0] = txf.Get(_KEY_preferenceGift_10_0); preferenceGift[1] = txf.Get(_KEY_preferenceGift_10_1); preferenceGift[2] = txf.Get(_KEY_preferenceGift_10_2); preferenceGift[3] = txf.Get(_KEY_preferenceGift_10_3); preferenceGift[4] = txf.Get(_KEY_preferenceGift_10_4); preferenceGift[5] = txf.Get(_KEY_preferenceGift_10_5); preferenceGift[6] = txf.Get(_KEY_preferenceGift_10_6); preferenceGift[7] = txf.Get(_KEY_preferenceGift_10_7); preferenceGift[8] = txf.Get(_KEY_preferenceGift_10_8); preferenceGift[9] = txf.Get(_KEY_preferenceGift_10_9); preferenceMod[0] = txf.Get(_KEY_preferenceMod_10_0); preferenceMod[1] = txf.Get(_KEY_preferenceMod_10_1); preferenceMod[2] = txf.Get(_KEY_preferenceMod_10_2); preferenceMod[3] = txf.Get(_KEY_preferenceMod_10_3); preferenceMod[4] = txf.Get(_KEY_preferenceMod_10_4); preferenceMod[5] = txf.Get(_KEY_preferenceMod_10_5); preferenceMod[6] = txf.Get(_KEY_preferenceMod_10_6); preferenceMod[7] = txf.Get(_KEY_preferenceMod_10_7); preferenceMod[8] = txf.Get(_KEY_preferenceMod_10_8); preferenceMod[9] = txf.Get(_KEY_preferenceMod_10_9); unlockStarAwardNum = txf.Get(_KEY_unlockStarAwardNum); attackShowId = txf.Get(_KEY_attackShowId); skillBattle = txf.Get(_KEY_skillBattle); skillBattleLevelUp[0] = txf.Get(_KEY_skillBattleLevelUp_20_0); skillBattleLevelUp[1] = txf.Get(_KEY_skillBattleLevelUp_20_1); skillBattleLevelUp[2] = txf.Get(_KEY_skillBattleLevelUp_20_2); skillBattleLevelUp[3] = txf.Get(_KEY_skillBattleLevelUp_20_3); skillBattleLevelUp[4] = txf.Get(_KEY_skillBattleLevelUp_20_4); skillBattleLevelUp[5] = txf.Get(_KEY_skillBattleLevelUp_20_5); skillBattleLevelUp[6] = txf.Get(_KEY_skillBattleLevelUp_20_6); skillBattleLevelUp[7] = txf.Get(_KEY_skillBattleLevelUp_20_7); skillBattleLevelUp[8] = txf.Get(_KEY_skillBattleLevelUp_20_8); skillBattleLevelUp[9] = txf.Get(_KEY_skillBattleLevelUp_20_9); skillBattleLevelUp[10] = txf.Get(_KEY_skillBattleLevelUp_20_10); skillBattleLevelUp[11] = txf.Get(_KEY_skillBattleLevelUp_20_11); skillBattleLevelUp[12] = txf.Get(_KEY_skillBattleLevelUp_20_12); skillBattleLevelUp[13] = txf.Get(_KEY_skillBattleLevelUp_20_13); skillBattleLevelUp[14] = txf.Get(_KEY_skillBattleLevelUp_20_14); skillBattleLevelUp[15] = txf.Get(_KEY_skillBattleLevelUp_20_15); skillBattleLevelUp[16] = txf.Get(_KEY_skillBattleLevelUp_20_16); skillBattleLevelUp[17] = txf.Get(_KEY_skillBattleLevelUp_20_17); skillBattleLevelUp[18] = txf.Get(_KEY_skillBattleLevelUp_20_18); skillBattleLevelUp[19] = txf.Get(_KEY_skillBattleLevelUp_20_19); skillAssist = txf.Get(_KEY_skillAssist); skillAssistLevelUp[0] = txf.Get(_KEY_skillAssistLevelUp_20_0); skillAssistLevelUp[1] = txf.Get(_KEY_skillAssistLevelUp_20_1); skillAssistLevelUp[2] = txf.Get(_KEY_skillAssistLevelUp_20_2); skillAssistLevelUp[3] = txf.Get(_KEY_skillAssistLevelUp_20_3); skillAssistLevelUp[4] = txf.Get(_KEY_skillAssistLevelUp_20_4); skillAssistLevelUp[5] = txf.Get(_KEY_skillAssistLevelUp_20_5); skillAssistLevelUp[6] = txf.Get(_KEY_skillAssistLevelUp_20_6); skillAssistLevelUp[7] = txf.Get(_KEY_skillAssistLevelUp_20_7); skillAssistLevelUp[8] = txf.Get(_KEY_skillAssistLevelUp_20_8); skillAssistLevelUp[9] = txf.Get(_KEY_skillAssistLevelUp_20_9); skillAssistLevelUp[10] = txf.Get(_KEY_skillAssistLevelUp_20_10); skillAssistLevelUp[11] = txf.Get(_KEY_skillAssistLevelUp_20_11); skillAssistLevelUp[12] = txf.Get(_KEY_skillAssistLevelUp_20_12); skillAssistLevelUp[13] = txf.Get(_KEY_skillAssistLevelUp_20_13); skillAssistLevelUp[14] = txf.Get(_KEY_skillAssistLevelUp_20_14); skillAssistLevelUp[15] = txf.Get(_KEY_skillAssistLevelUp_20_15); skillAssistLevelUp[16] = txf.Get(_KEY_skillAssistLevelUp_20_16); skillAssistLevelUp[17] = txf.Get(_KEY_skillAssistLevelUp_20_17); skillAssistLevelUp[18] = txf.Get(_KEY_skillAssistLevelUp_20_18); skillAssistLevelUp[19] = txf.Get(_KEY_skillAssistLevelUp_20_19); return true; } public bool ReadItemBin(TabBinFile txf, bool readKeyOnly) { id = txf.GetintByIndex(_KEY_id); if(readKeyOnly) { return true; } rarity = txf.GetintByIndex(_KEY_rarity); initMateLevel = txf.GetintByIndex(_KEY_initMateLevel); initMateRank = txf.GetintByIndex(_KEY_initMateRank); initMateStar = txf.GetintByIndex(_KEY_initMateStar); baseAtk = txf.GetintByIndex(_KEY_baseAtk); baseDef = txf.GetintByIndex(_KEY_baseDef); baseHp = txf.GetintByIndex(_KEY_baseHp); baseSpeed = txf.GetintByIndex(_KEY_baseSpeed); specialPropType[0] = txf.GetintByIndex(_KEY_specialPropType_2_0); specialPropType[1] = txf.GetintByIndex(_KEY_specialPropType_2_1); fragmentID = txf.GetintByIndex(_KEY_fragmentID); fragmentNum = txf.GetintByIndex(_KEY_fragmentNum); initFriendshipLevel = txf.GetintByIndex(_KEY_initFriendshipLevel); unlock = txf.GetintByIndex(_KEY_unlock); icon = txf.GetintByIndex(_KEY_icon); mateType = txf.GetintByIndex(_KEY_mateType); battleLocation = txf.GetintByIndex(_KEY_battleLocation); mateTag[0] = txf.GetintByIndex(_KEY_mateTag_3_0); mateTag[1] = txf.GetintByIndex(_KEY_mateTag_3_1); mateTag[2] = txf.GetintByIndex(_KEY_mateTag_3_2); unlockRewardType = txf.GetintByIndex(_KEY_unlockRewardType); unlockRewardId = txf.GetintByIndex(_KEY_unlockRewardId); unlockRewardNum = txf.GetintByIndex(_KEY_unlockRewardNum); petPanter[0] = txf.GetintByIndex(_KEY_petPanter_10_0); petPanter[1] = txf.GetintByIndex(_KEY_petPanter_10_1); petPanter[2] = txf.GetintByIndex(_KEY_petPanter_10_2); petPanter[3] = txf.GetintByIndex(_KEY_petPanter_10_3); petPanter[4] = txf.GetintByIndex(_KEY_petPanter_10_4); petPanter[5] = txf.GetintByIndex(_KEY_petPanter_10_5); petPanter[6] = txf.GetintByIndex(_KEY_petPanter_10_6); petPanter[7] = txf.GetintByIndex(_KEY_petPanter_10_7); petPanter[8] = txf.GetintByIndex(_KEY_petPanter_10_8); petPanter[9] = txf.GetintByIndex(_KEY_petPanter_10_9); starAwardNum = txf.GetintByIndex(_KEY_starAwardNum); compositeNum = txf.GetintByIndex(_KEY_compositeNum); preferenceGift[0] = txf.GetintByIndex(_KEY_preferenceGift_10_0); preferenceGift[1] = txf.GetintByIndex(_KEY_preferenceGift_10_1); preferenceGift[2] = txf.GetintByIndex(_KEY_preferenceGift_10_2); preferenceGift[3] = txf.GetintByIndex(_KEY_preferenceGift_10_3); preferenceGift[4] = txf.GetintByIndex(_KEY_preferenceGift_10_4); preferenceGift[5] = txf.GetintByIndex(_KEY_preferenceGift_10_5); preferenceGift[6] = txf.GetintByIndex(_KEY_preferenceGift_10_6); preferenceGift[7] = txf.GetintByIndex(_KEY_preferenceGift_10_7); preferenceGift[8] = txf.GetintByIndex(_KEY_preferenceGift_10_8); preferenceGift[9] = txf.GetintByIndex(_KEY_preferenceGift_10_9); preferenceMod[0] = txf.GetintByIndex(_KEY_preferenceMod_10_0); preferenceMod[1] = txf.GetintByIndex(_KEY_preferenceMod_10_1); preferenceMod[2] = txf.GetintByIndex(_KEY_preferenceMod_10_2); preferenceMod[3] = txf.GetintByIndex(_KEY_preferenceMod_10_3); preferenceMod[4] = txf.GetintByIndex(_KEY_preferenceMod_10_4); preferenceMod[5] = txf.GetintByIndex(_KEY_preferenceMod_10_5); preferenceMod[6] = txf.GetintByIndex(_KEY_preferenceMod_10_6); preferenceMod[7] = txf.GetintByIndex(_KEY_preferenceMod_10_7); preferenceMod[8] = txf.GetintByIndex(_KEY_preferenceMod_10_8); preferenceMod[9] = txf.GetintByIndex(_KEY_preferenceMod_10_9); unlockStarAwardNum = txf.GetintByIndex(_KEY_unlockStarAwardNum); attackShowId = txf.GetintByIndex(_KEY_attackShowId); skillBattle = txf.GetintByIndex(_KEY_skillBattle); skillBattleLevelUp[0] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_0); skillBattleLevelUp[1] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_1); skillBattleLevelUp[2] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_2); skillBattleLevelUp[3] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_3); skillBattleLevelUp[4] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_4); skillBattleLevelUp[5] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_5); skillBattleLevelUp[6] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_6); skillBattleLevelUp[7] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_7); skillBattleLevelUp[8] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_8); skillBattleLevelUp[9] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_9); skillBattleLevelUp[10] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_10); skillBattleLevelUp[11] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_11); skillBattleLevelUp[12] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_12); skillBattleLevelUp[13] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_13); skillBattleLevelUp[14] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_14); skillBattleLevelUp[15] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_15); skillBattleLevelUp[16] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_16); skillBattleLevelUp[17] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_17); skillBattleLevelUp[18] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_18); skillBattleLevelUp[19] = txf.GetintByIndex(_KEY_skillBattleLevelUp_20_19); skillAssist = txf.GetintByIndex(_KEY_skillAssist); skillAssistLevelUp[0] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_0); skillAssistLevelUp[1] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_1); skillAssistLevelUp[2] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_2); skillAssistLevelUp[3] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_3); skillAssistLevelUp[4] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_4); skillAssistLevelUp[5] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_5); skillAssistLevelUp[6] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_6); skillAssistLevelUp[7] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_7); skillAssistLevelUp[8] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_8); skillAssistLevelUp[9] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_9); skillAssistLevelUp[10] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_10); skillAssistLevelUp[11] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_11); skillAssistLevelUp[12] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_12); skillAssistLevelUp[13] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_13); skillAssistLevelUp[14] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_14); skillAssistLevelUp[15] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_15); skillAssistLevelUp[16] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_16); skillAssistLevelUp[17] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_17); skillAssistLevelUp[18] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_18); skillAssistLevelUp[19] = txf.GetintByIndex(_KEY_skillAssistLevelUp_20_19); return true; } #if UNITY_2019_1_OR_NEWER public MateDesc 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 }