| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2026年4月29日 |
| | | // [ Date ]: Monday, May 11, 2026 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int ActShopType; |
| | | public int ADID; |
| | | public int[][] PopItems; |
| | | public float[] OriginalPrices; |
| | | public float[] PercentageTexts; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | |
| | | int.TryParse(tables[3],out ADID); |
| | | |
| | | PopItems = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | if (tables[5].Contains("[")) |
| | | { |
| | | OriginalPrices = JsonMapper.ToObject<float[]>(tables[5]); |
| | | } |
| | | else |
| | | { |
| | | string[] OriginalPricesStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | OriginalPrices = new float[OriginalPricesStringArray.Length]; |
| | | for (int i=0;i<OriginalPricesStringArray.Length;i++) |
| | | { |
| | | float.TryParse(OriginalPricesStringArray[i],out OriginalPrices[i]); |
| | | } |
| | | } |
| | | |
| | | if (tables[6].Contains("[")) |
| | | { |
| | | PercentageTexts = JsonMapper.ToObject<float[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] PercentageTextsStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | PercentageTexts = new float[PercentageTextsStringArray.Length]; |
| | | for (int i=0;i<PercentageTextsStringArray.Length;i++) |
| | | { |
| | | float.TryParse(PercentageTextsStringArray[i],out PercentageTexts[i]); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception exception) |
| | | { |