| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年10月30日
|
| | | // [ Date ]: 2024年11月6日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int ID;
|
| | | public readonly string Name;
|
| | | public readonly int NeedLV;
|
| | | public readonly int SortNum;
|
| | | public readonly int UnlockDefault;
|
| | | public readonly int ExpireMinutes;
|
| | | public readonly int[][] UnlockNeedItemList;
|
| | |
| | |
|
| | | int.TryParse(tables[2],out NeedLV);
|
| | |
|
| | | int.TryParse(tables[3],out UnlockDefault); |
| | | int.TryParse(tables[3],out SortNum); |
| | |
|
| | | int.TryParse(tables[4],out ExpireMinutes); |
| | | int.TryParse(tables[4],out UnlockDefault); |
| | |
|
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[5].Replace("(", "[").Replace(")", "]")); |
| | | int.TryParse(tables[5],out ExpireMinutes); |
| | |
|
| | | if (tables[6].Contains("[")) |
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[6].Replace("(", "[").Replace(")", "]")); |
| | |
|
| | | if (tables[7].Contains("[")) |
| | | { |
| | | LightAttrType = JsonMapper.ToObject<int[]>(tables[6]); |
| | | LightAttrType = JsonMapper.ToObject<int[]>(tables[7]); |
| | | } |
| | | else |
| | | { |
| | | string[] LightAttrTypeStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LightAttrTypeStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttrType = new int[LightAttrTypeStringArray.Length]; |
| | | for (int i=0;i<LightAttrTypeStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | if (tables[7].Contains("[")) |
| | | if (tables[8].Contains("[")) |
| | | { |
| | | LightAttrValue = JsonMapper.ToObject<int[]>(tables[7]); |
| | | LightAttrValue = JsonMapper.ToObject<int[]>(tables[8]); |
| | | } |
| | | else |
| | | { |
| | | string[] LightAttrValueStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LightAttrValueStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttrValue = new int[LightAttrValueStringArray.Length]; |
| | | for (int i=0;i<LightAttrValueStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[8],out LightFightPower); |
| | | int.TryParse(tables[9],out LightFightPower); |
| | |
|
| | | leftBubbleIcon = tables[9];
|
| | | leftBubbleIcon = tables[10];
|
| | |
|
| | | rightBubbleIcon = tables[10];
|
| | | rightBubbleIcon = tables[11];
|
| | |
|
| | | if (tables[11].Contains("[")) |
| | | if (tables[12].Contains("[")) |
| | | { |
| | | leftOffset = JsonMapper.ToObject<int[]>(tables[11]); |
| | | leftOffset = JsonMapper.ToObject<int[]>(tables[12]); |
| | | } |
| | | else |
| | | { |
| | | string[] leftOffsetStringArray = tables[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] leftOffsetStringArray = tables[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | leftOffset = new int[leftOffsetStringArray.Length]; |
| | | for (int i=0;i<leftOffsetStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | if (tables[12].Contains("[")) |
| | | if (tables[13].Contains("[")) |
| | | { |
| | | rightOffset = JsonMapper.ToObject<int[]>(tables[12]); |
| | | rightOffset = JsonMapper.ToObject<int[]>(tables[13]); |
| | | } |
| | | else |
| | | { |
| | | string[] rightOffsetStringArray = tables[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] rightOffsetStringArray = tables[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | rightOffset = new int[rightOffsetStringArray.Length]; |
| | | for (int i=0;i<rightOffsetStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | Icon = tables[13];
|
| | | Icon = tables[14];
|
| | |
|
| | | int.TryParse(tables[14],out Jump); |
| | | int.TryParse(tables[15],out Jump); |
| | |
|
| | | GainTip = tables[15];
|
| | | GainTip = tables[16];
|
| | |
|
| | | if (tables[16].Contains("[")) |
| | | if (tables[17].Contains("[")) |
| | | { |
| | | color = JsonMapper.ToObject<int[]>(tables[16]); |
| | | color = JsonMapper.ToObject<int[]>(tables[17]); |
| | | } |
| | | else |
| | | { |
| | | string[] colorStringArray = tables[16].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] colorStringArray = tables[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | color = new int[colorStringArray.Length]; |
| | | for (int i=0;i<colorStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[17],out top); |
| | | int.TryParse(tables[18],out top); |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|