//============================================ //--4>: // Exported by ExcelConfigExport // // 此代码为工具根据配置自动生成, 请不要修改 // //============================================ using System; using Sog; using System.Collections.Generic; #if UNITY_2019_1_OR_NEWER using GameLogic; #endif public partial class EquipQualityDescMgr : IConfigManager { //Singleton private static EquipQualityDescMgr _instance; private static readonly object syslock = new object(); public static EquipQualityDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new EquipQualityDescMgr(); }}} return _instance; }} public class ItemData { public EquipQualityDesc 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 EquipQualityDesc() }; 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 EquipQualityDesc() }; 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 EquipQualityDesc 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 EquipQualityDesc { public partial class ExtraProp { public int[] id{ get; set; } // 0//装备特性1属性类型随机权重 属性id;属性id, public int[] weight{ get; set; } // 0//装备特性1属性类型随机权重 属性id;属性id public int min{ get; set; } // 0//装备特性1属性区间最小值(万分比) public int max{ get; set; } // 0//装备特性1属性区间最大值(万分比) } public static readonly string _KEY_id = "id"; public static readonly string _KEY_qualityColor = "qualityColor"; public static readonly string _KEY_star = "star"; public static readonly string _KEY_exp = "exp"; public static readonly string _KEY_equipCostFactor = "equipCostFactor"; public static readonly string _KEY_baseFactor = "baseFactor"; public static readonly string _KEY_qualityFactor = "qualityFactor"; public static readonly string _KEY_extraProp_0_id_15_0 = "extraProp_0_id_15_0"; public static readonly string _KEY_extraProp_0_id_15_1 = "extraProp_0_id_15_1"; public static readonly string _KEY_extraProp_0_id_15_2 = "extraProp_0_id_15_2"; public static readonly string _KEY_extraProp_0_id_15_3 = "extraProp_0_id_15_3"; public static readonly string _KEY_extraProp_0_id_15_4 = "extraProp_0_id_15_4"; public static readonly string _KEY_extraProp_0_id_15_5 = "extraProp_0_id_15_5"; public static readonly string _KEY_extraProp_0_id_15_6 = "extraProp_0_id_15_6"; public static readonly string _KEY_extraProp_0_id_15_7 = "extraProp_0_id_15_7"; public static readonly string _KEY_extraProp_0_id_15_8 = "extraProp_0_id_15_8"; public static readonly string _KEY_extraProp_0_id_15_9 = "extraProp_0_id_15_9"; public static readonly string _KEY_extraProp_0_id_15_10 = "extraProp_0_id_15_10"; public static readonly string _KEY_extraProp_0_id_15_11 = "extraProp_0_id_15_11"; public static readonly string _KEY_extraProp_0_id_15_12 = "extraProp_0_id_15_12"; public static readonly string _KEY_extraProp_0_id_15_13 = "extraProp_0_id_15_13"; public static readonly string _KEY_extraProp_0_id_15_14 = "extraProp_0_id_15_14"; public static readonly string _KEY_extraProp_0_weight_15_0 = "extraProp_0_weight_15_0"; public static readonly string _KEY_extraProp_0_weight_15_1 = "extraProp_0_weight_15_1"; public static readonly string _KEY_extraProp_0_weight_15_2 = "extraProp_0_weight_15_2"; public static readonly string _KEY_extraProp_0_weight_15_3 = "extraProp_0_weight_15_3"; public static readonly string _KEY_extraProp_0_weight_15_4 = "extraProp_0_weight_15_4"; public static readonly string _KEY_extraProp_0_weight_15_5 = "extraProp_0_weight_15_5"; public static readonly string _KEY_extraProp_0_weight_15_6 = "extraProp_0_weight_15_6"; public static readonly string _KEY_extraProp_0_weight_15_7 = "extraProp_0_weight_15_7"; public static readonly string _KEY_extraProp_0_weight_15_8 = "extraProp_0_weight_15_8"; public static readonly string _KEY_extraProp_0_weight_15_9 = "extraProp_0_weight_15_9"; public static readonly string _KEY_extraProp_0_weight_15_10 = "extraProp_0_weight_15_10"; public static readonly string _KEY_extraProp_0_weight_15_11 = "extraProp_0_weight_15_11"; public static readonly string _KEY_extraProp_0_weight_15_12 = "extraProp_0_weight_15_12"; public static readonly string _KEY_extraProp_0_weight_15_13 = "extraProp_0_weight_15_13"; public static readonly string _KEY_extraProp_0_weight_15_14 = "extraProp_0_weight_15_14"; public static readonly string _KEY_extraProp_0_min = "extraProp_0_min"; public static readonly string _KEY_extraProp_0_max = "extraProp_0_max"; public static readonly string _KEY_extraProp_1_id_15_0 = "extraProp_1_id_15_0"; public static readonly string _KEY_extraProp_1_id_15_1 = "extraProp_1_id_15_1"; public static readonly string _KEY_extraProp_1_id_15_2 = "extraProp_1_id_15_2"; public static readonly string _KEY_extraProp_1_id_15_3 = "extraProp_1_id_15_3"; public static readonly string _KEY_extraProp_1_id_15_4 = "extraProp_1_id_15_4"; public static readonly string _KEY_extraProp_1_id_15_5 = "extraProp_1_id_15_5"; public static readonly string _KEY_extraProp_1_id_15_6 = "extraProp_1_id_15_6"; public static readonly string _KEY_extraProp_1_id_15_7 = "extraProp_1_id_15_7"; public static readonly string _KEY_extraProp_1_id_15_8 = "extraProp_1_id_15_8"; public static readonly string _KEY_extraProp_1_id_15_9 = "extraProp_1_id_15_9"; public static readonly string _KEY_extraProp_1_id_15_10 = "extraProp_1_id_15_10"; public static readonly string _KEY_extraProp_1_id_15_11 = "extraProp_1_id_15_11"; public static readonly string _KEY_extraProp_1_id_15_12 = "extraProp_1_id_15_12"; public static readonly string _KEY_extraProp_1_id_15_13 = "extraProp_1_id_15_13"; public static readonly string _KEY_extraProp_1_id_15_14 = "extraProp_1_id_15_14"; public static readonly string _KEY_extraProp_1_weight_15_0 = "extraProp_1_weight_15_0"; public static readonly string _KEY_extraProp_1_weight_15_1 = "extraProp_1_weight_15_1"; public static readonly string _KEY_extraProp_1_weight_15_2 = "extraProp_1_weight_15_2"; public static readonly string _KEY_extraProp_1_weight_15_3 = "extraProp_1_weight_15_3"; public static readonly string _KEY_extraProp_1_weight_15_4 = "extraProp_1_weight_15_4"; public static readonly string _KEY_extraProp_1_weight_15_5 = "extraProp_1_weight_15_5"; public static readonly string _KEY_extraProp_1_weight_15_6 = "extraProp_1_weight_15_6"; public static readonly string _KEY_extraProp_1_weight_15_7 = "extraProp_1_weight_15_7"; public static readonly string _KEY_extraProp_1_weight_15_8 = "extraProp_1_weight_15_8"; public static readonly string _KEY_extraProp_1_weight_15_9 = "extraProp_1_weight_15_9"; public static readonly string _KEY_extraProp_1_weight_15_10 = "extraProp_1_weight_15_10"; public static readonly string _KEY_extraProp_1_weight_15_11 = "extraProp_1_weight_15_11"; public static readonly string _KEY_extraProp_1_weight_15_12 = "extraProp_1_weight_15_12"; public static readonly string _KEY_extraProp_1_weight_15_13 = "extraProp_1_weight_15_13"; public static readonly string _KEY_extraProp_1_weight_15_14 = "extraProp_1_weight_15_14"; public static readonly string _KEY_extraProp_1_min = "extraProp_1_min"; public static readonly string _KEY_extraProp_1_max = "extraProp_1_max"; public static readonly string _KEY_spMin = "spMin"; public static readonly string _KEY_spMax = "spMax"; public static readonly string _KEY_healMin = "healMin"; public static readonly string _KEY_healMax = "healMax"; public static readonly string _KEY_bully = "bully"; public static readonly string _KEY_goldGain = "goldGain"; public static readonly string _KEY_gladiator = "gladiator"; public static readonly string _KEY_resolveItem = "resolveItem"; public static readonly string _KEY_randomProp_2_0 = "randomProp_2_0"; public static readonly string _KEY_randomProp_2_1 = "randomProp_2_1"; public int id { get; set; } // 品阶ID public int qualityColor { get; set; } // (品质颜色1-11) 1-白(普通) 2-绿(优秀) 3-蓝(精良) 4-紫(稀有) 5-黄(史诗) 6-橙(传说) 7-红(远古) 8-亮蓝(神话) 9-粉(起源) 10-渐变绿(混沌) 11-渐变蓝(不朽) public int star { get; set; } // //星级,不填则不显示 public int exp { get; set; } // 装备出售/分解获得经验 public int equipCostFactor { get; set; } // //装备出售品质系数 (万分比) public int baseFactor { get; set; } // //品质差系数1 public int qualityFactor { get; set; } // //品质差系数2 public ExtraProp[] extraProp { get; set; } public int spMin { get; set; } // //装备暴虐、仁爱、迟缓、禁疗属性区间最小值(万分比) public int spMax { get; set; } // //装备暴虐、仁爱、迟缓、禁疗属性区间最大值(万分比) public int healMin { get; set; } // //装备特性2=回复属性区间最小值(万分比) public int healMax { get; set; } // //装备特性2=回复属性区间最大值(万分比) public int bully { get; set; } // //装备特性2=凌弱属性(万分比) public int goldGain { get; set; } // //装备特性2=掠财属性(万分比) public int gladiator { get; set; } // //装备特性2=角斗士额外给予挑战券数量 public int resolveItem { get; set; } // //装备分解对应drop id public int[] randomProp { get; set; } // //最终攻防血速随机万分比,小数向下取整 public Dictionary listDic = new Dictionary(); public EquipQualityDesc() { extraProp = new ExtraProp[2]; extraProp[0] = new ExtraProp(); extraProp[1] = new ExtraProp(); listDic.Add("extraProp", typeof(ExtraProp)); extraProp[0].id = new int[15]; extraProp[1].id = new int[15]; extraProp[0].weight = new int[15]; extraProp[1].weight = new int[15]; randomProp = new int[2]; listDic.Add("randomProp", typeof(int)); } public int GetKey1() { return id; } public bool ReadItem(TabTextFile txf, bool readKeyOnly) { id = txf.Get(_KEY_id); if(readKeyOnly) { return true; } qualityColor = txf.Get(_KEY_qualityColor); star = txf.Get(_KEY_star); exp = txf.Get(_KEY_exp); equipCostFactor = txf.Get(_KEY_equipCostFactor); baseFactor = txf.Get(_KEY_baseFactor); qualityFactor = txf.Get(_KEY_qualityFactor); extraProp[0].id[0] = txf.Get(_KEY_extraProp_0_id_15_0); extraProp[0].id[1] = txf.Get(_KEY_extraProp_0_id_15_1); extraProp[0].id[2] = txf.Get(_KEY_extraProp_0_id_15_2); extraProp[0].id[3] = txf.Get(_KEY_extraProp_0_id_15_3); extraProp[0].id[4] = txf.Get(_KEY_extraProp_0_id_15_4); extraProp[0].id[5] = txf.Get(_KEY_extraProp_0_id_15_5); extraProp[0].id[6] = txf.Get(_KEY_extraProp_0_id_15_6); extraProp[0].id[7] = txf.Get(_KEY_extraProp_0_id_15_7); extraProp[0].id[8] = txf.Get(_KEY_extraProp_0_id_15_8); extraProp[0].id[9] = txf.Get(_KEY_extraProp_0_id_15_9); extraProp[0].id[10] = txf.Get(_KEY_extraProp_0_id_15_10); extraProp[0].id[11] = txf.Get(_KEY_extraProp_0_id_15_11); extraProp[0].id[12] = txf.Get(_KEY_extraProp_0_id_15_12); extraProp[0].id[13] = txf.Get(_KEY_extraProp_0_id_15_13); extraProp[0].id[14] = txf.Get(_KEY_extraProp_0_id_15_14); extraProp[0].weight[0] = txf.Get(_KEY_extraProp_0_weight_15_0); extraProp[0].weight[1] = txf.Get(_KEY_extraProp_0_weight_15_1); extraProp[0].weight[2] = txf.Get(_KEY_extraProp_0_weight_15_2); extraProp[0].weight[3] = txf.Get(_KEY_extraProp_0_weight_15_3); extraProp[0].weight[4] = txf.Get(_KEY_extraProp_0_weight_15_4); extraProp[0].weight[5] = txf.Get(_KEY_extraProp_0_weight_15_5); extraProp[0].weight[6] = txf.Get(_KEY_extraProp_0_weight_15_6); extraProp[0].weight[7] = txf.Get(_KEY_extraProp_0_weight_15_7); extraProp[0].weight[8] = txf.Get(_KEY_extraProp_0_weight_15_8); extraProp[0].weight[9] = txf.Get(_KEY_extraProp_0_weight_15_9); extraProp[0].weight[10] = txf.Get(_KEY_extraProp_0_weight_15_10); extraProp[0].weight[11] = txf.Get(_KEY_extraProp_0_weight_15_11); extraProp[0].weight[12] = txf.Get(_KEY_extraProp_0_weight_15_12); extraProp[0].weight[13] = txf.Get(_KEY_extraProp_0_weight_15_13); extraProp[0].weight[14] = txf.Get(_KEY_extraProp_0_weight_15_14); extraProp[0].min = txf.Get(_KEY_extraProp_0_min); extraProp[0].max = txf.Get(_KEY_extraProp_0_max); extraProp[1].id[0] = txf.Get(_KEY_extraProp_1_id_15_0); extraProp[1].id[1] = txf.Get(_KEY_extraProp_1_id_15_1); extraProp[1].id[2] = txf.Get(_KEY_extraProp_1_id_15_2); extraProp[1].id[3] = txf.Get(_KEY_extraProp_1_id_15_3); extraProp[1].id[4] = txf.Get(_KEY_extraProp_1_id_15_4); extraProp[1].id[5] = txf.Get(_KEY_extraProp_1_id_15_5); extraProp[1].id[6] = txf.Get(_KEY_extraProp_1_id_15_6); extraProp[1].id[7] = txf.Get(_KEY_extraProp_1_id_15_7); extraProp[1].id[8] = txf.Get(_KEY_extraProp_1_id_15_8); extraProp[1].id[9] = txf.Get(_KEY_extraProp_1_id_15_9); extraProp[1].id[10] = txf.Get(_KEY_extraProp_1_id_15_10); extraProp[1].id[11] = txf.Get(_KEY_extraProp_1_id_15_11); extraProp[1].id[12] = txf.Get(_KEY_extraProp_1_id_15_12); extraProp[1].id[13] = txf.Get(_KEY_extraProp_1_id_15_13); extraProp[1].id[14] = txf.Get(_KEY_extraProp_1_id_15_14); extraProp[1].weight[0] = txf.Get(_KEY_extraProp_1_weight_15_0); extraProp[1].weight[1] = txf.Get(_KEY_extraProp_1_weight_15_1); extraProp[1].weight[2] = txf.Get(_KEY_extraProp_1_weight_15_2); extraProp[1].weight[3] = txf.Get(_KEY_extraProp_1_weight_15_3); extraProp[1].weight[4] = txf.Get(_KEY_extraProp_1_weight_15_4); extraProp[1].weight[5] = txf.Get(_KEY_extraProp_1_weight_15_5); extraProp[1].weight[6] = txf.Get(_KEY_extraProp_1_weight_15_6); extraProp[1].weight[7] = txf.Get(_KEY_extraProp_1_weight_15_7); extraProp[1].weight[8] = txf.Get(_KEY_extraProp_1_weight_15_8); extraProp[1].weight[9] = txf.Get(_KEY_extraProp_1_weight_15_9); extraProp[1].weight[10] = txf.Get(_KEY_extraProp_1_weight_15_10); extraProp[1].weight[11] = txf.Get(_KEY_extraProp_1_weight_15_11); extraProp[1].weight[12] = txf.Get(_KEY_extraProp_1_weight_15_12); extraProp[1].weight[13] = txf.Get(_KEY_extraProp_1_weight_15_13); extraProp[1].weight[14] = txf.Get(_KEY_extraProp_1_weight_15_14); extraProp[1].min = txf.Get(_KEY_extraProp_1_min); extraProp[1].max = txf.Get(_KEY_extraProp_1_max); spMin = txf.Get(_KEY_spMin); spMax = txf.Get(_KEY_spMax); healMin = txf.Get(_KEY_healMin); healMax = txf.Get(_KEY_healMax); bully = txf.Get(_KEY_bully); goldGain = txf.Get(_KEY_goldGain); gladiator = txf.Get(_KEY_gladiator); resolveItem = txf.Get(_KEY_resolveItem); randomProp[0] = txf.Get(_KEY_randomProp_2_0); randomProp[1] = txf.Get(_KEY_randomProp_2_1); return true; } public bool ReadItemBin(TabBinFile txf, bool readKeyOnly) { id = txf.GetintByIndex(_KEY_id); if(readKeyOnly) { return true; } qualityColor = txf.GetintByIndex(_KEY_qualityColor); star = txf.GetintByIndex(_KEY_star); exp = txf.GetintByIndex(_KEY_exp); equipCostFactor = txf.GetintByIndex(_KEY_equipCostFactor); baseFactor = txf.GetintByIndex(_KEY_baseFactor); qualityFactor = txf.GetintByIndex(_KEY_qualityFactor); extraProp[0].id[0] = txf.GetintByIndex(_KEY_extraProp_0_id_15_0); extraProp[0].id[1] = txf.GetintByIndex(_KEY_extraProp_0_id_15_1); extraProp[0].id[2] = txf.GetintByIndex(_KEY_extraProp_0_id_15_2); extraProp[0].id[3] = txf.GetintByIndex(_KEY_extraProp_0_id_15_3); extraProp[0].id[4] = txf.GetintByIndex(_KEY_extraProp_0_id_15_4); extraProp[0].id[5] = txf.GetintByIndex(_KEY_extraProp_0_id_15_5); extraProp[0].id[6] = txf.GetintByIndex(_KEY_extraProp_0_id_15_6); extraProp[0].id[7] = txf.GetintByIndex(_KEY_extraProp_0_id_15_7); extraProp[0].id[8] = txf.GetintByIndex(_KEY_extraProp_0_id_15_8); extraProp[0].id[9] = txf.GetintByIndex(_KEY_extraProp_0_id_15_9); extraProp[0].id[10] = txf.GetintByIndex(_KEY_extraProp_0_id_15_10); extraProp[0].id[11] = txf.GetintByIndex(_KEY_extraProp_0_id_15_11); extraProp[0].id[12] = txf.GetintByIndex(_KEY_extraProp_0_id_15_12); extraProp[0].id[13] = txf.GetintByIndex(_KEY_extraProp_0_id_15_13); extraProp[0].id[14] = txf.GetintByIndex(_KEY_extraProp_0_id_15_14); extraProp[0].weight[0] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_0); extraProp[0].weight[1] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_1); extraProp[0].weight[2] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_2); extraProp[0].weight[3] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_3); extraProp[0].weight[4] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_4); extraProp[0].weight[5] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_5); extraProp[0].weight[6] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_6); extraProp[0].weight[7] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_7); extraProp[0].weight[8] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_8); extraProp[0].weight[9] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_9); extraProp[0].weight[10] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_10); extraProp[0].weight[11] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_11); extraProp[0].weight[12] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_12); extraProp[0].weight[13] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_13); extraProp[0].weight[14] = txf.GetintByIndex(_KEY_extraProp_0_weight_15_14); extraProp[0].min = txf.GetintByIndex(_KEY_extraProp_0_min); extraProp[0].max = txf.GetintByIndex(_KEY_extraProp_0_max); extraProp[1].id[0] = txf.GetintByIndex(_KEY_extraProp_1_id_15_0); extraProp[1].id[1] = txf.GetintByIndex(_KEY_extraProp_1_id_15_1); extraProp[1].id[2] = txf.GetintByIndex(_KEY_extraProp_1_id_15_2); extraProp[1].id[3] = txf.GetintByIndex(_KEY_extraProp_1_id_15_3); extraProp[1].id[4] = txf.GetintByIndex(_KEY_extraProp_1_id_15_4); extraProp[1].id[5] = txf.GetintByIndex(_KEY_extraProp_1_id_15_5); extraProp[1].id[6] = txf.GetintByIndex(_KEY_extraProp_1_id_15_6); extraProp[1].id[7] = txf.GetintByIndex(_KEY_extraProp_1_id_15_7); extraProp[1].id[8] = txf.GetintByIndex(_KEY_extraProp_1_id_15_8); extraProp[1].id[9] = txf.GetintByIndex(_KEY_extraProp_1_id_15_9); extraProp[1].id[10] = txf.GetintByIndex(_KEY_extraProp_1_id_15_10); extraProp[1].id[11] = txf.GetintByIndex(_KEY_extraProp_1_id_15_11); extraProp[1].id[12] = txf.GetintByIndex(_KEY_extraProp_1_id_15_12); extraProp[1].id[13] = txf.GetintByIndex(_KEY_extraProp_1_id_15_13); extraProp[1].id[14] = txf.GetintByIndex(_KEY_extraProp_1_id_15_14); extraProp[1].weight[0] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_0); extraProp[1].weight[1] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_1); extraProp[1].weight[2] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_2); extraProp[1].weight[3] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_3); extraProp[1].weight[4] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_4); extraProp[1].weight[5] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_5); extraProp[1].weight[6] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_6); extraProp[1].weight[7] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_7); extraProp[1].weight[8] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_8); extraProp[1].weight[9] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_9); extraProp[1].weight[10] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_10); extraProp[1].weight[11] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_11); extraProp[1].weight[12] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_12); extraProp[1].weight[13] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_13); extraProp[1].weight[14] = txf.GetintByIndex(_KEY_extraProp_1_weight_15_14); extraProp[1].min = txf.GetintByIndex(_KEY_extraProp_1_min); extraProp[1].max = txf.GetintByIndex(_KEY_extraProp_1_max); spMin = txf.GetintByIndex(_KEY_spMin); spMax = txf.GetintByIndex(_KEY_spMax); healMin = txf.GetintByIndex(_KEY_healMin); healMax = txf.GetintByIndex(_KEY_healMax); bully = txf.GetintByIndex(_KEY_bully); goldGain = txf.GetintByIndex(_KEY_goldGain); gladiator = txf.GetintByIndex(_KEY_gladiator); resolveItem = txf.GetintByIndex(_KEY_resolveItem); randomProp[0] = txf.GetintByIndex(_KEY_randomProp_2_0); randomProp[1] = txf.GetintByIndex(_KEY_randomProp_2_1); return true; } #if UNITY_2019_1_OR_NEWER public EquipQualityDesc 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 }