| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年12月10日 |
| | | // [ Date ]: Tuesday, December 30, 2025 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int FatesID; |
| | | public string FatesName; |
| | | public int FatesQuality; |
| | | public int BGQuality; |
| | | public int[] HeroIDList; |
| | | public int[][] AwardItemList; |
| | | public int[] AttrIDList; |
| | |
| | | |
| | | int.TryParse(tables[2],out FatesQuality); |
| | | |
| | | if (tables[3].Contains("[")) |
| | | int.TryParse(tables[3],out BGQuality); |
| | | |
| | | if (tables[4].Contains("[")) |
| | | { |
| | | HeroIDList = JsonMapper.ToObject<int[]>(tables[3]); |
| | | HeroIDList = JsonMapper.ToObject<int[]>(tables[4]); |
| | | } |
| | | else |
| | | { |
| | | string[] HeroIDListStringArray = tables[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] HeroIDListStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | HeroIDList = new int[HeroIDListStringArray.Length]; |
| | | for (int i=0;i<HeroIDListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | AwardItemList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]")); |
| | | AwardItemList = JsonMapper.ToObject<int[][]>(tables[5].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | if (tables[5].Contains("[")) |
| | | if (tables[6].Contains("[")) |
| | | { |
| | | AttrIDList = JsonMapper.ToObject<int[]>(tables[5]); |
| | | AttrIDList = JsonMapper.ToObject<int[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] AttrIDListStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] AttrIDListStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrIDList = new int[AttrIDListStringArray.Length]; |
| | | for (int i=0;i<AttrIDListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | if (tables[6].Contains("[")) |
| | | if (tables[7].Contains("[")) |
| | | { |
| | | LVAttrValueList = JsonMapper.ToObject<int[]>(tables[6]); |
| | | LVAttrValueList = JsonMapper.ToObject<int[]>(tables[7]); |
| | | } |
| | | else |
| | | { |
| | | string[] LVAttrValueListStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LVAttrValueListStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LVAttrValueList = new int[LVAttrValueListStringArray.Length]; |
| | | for (int i=0;i<LVAttrValueListStringArray.Length;i++) |
| | | { |