| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年10月30日
|
| | | // [ Date ]: 2024年11月6日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int FacePicID;
|
| | | public readonly string Name;
|
| | | public readonly string Image;
|
| | | public readonly int SortNum;
|
| | | public readonly int EffectID;
|
| | | public readonly int UnlockDefault;
|
| | | public readonly int ExpireMinutes;
|
| | |
| | |
|
| | | Image = tables[2];
|
| | |
|
| | | int.TryParse(tables[3],out EffectID); |
| | | int.TryParse(tables[3],out SortNum); |
| | |
|
| | | int.TryParse(tables[4],out UnlockDefault); |
| | | int.TryParse(tables[4],out EffectID); |
| | |
|
| | | int.TryParse(tables[5],out ExpireMinutes); |
| | | int.TryParse(tables[5],out UnlockDefault); |
| | |
|
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[6].Replace("(", "[").Replace(")", "]")); |
| | | int.TryParse(tables[6],out ExpireMinutes); |
| | |
|
| | | if (tables[7].Contains("[")) |
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[7].Replace("(", "[").Replace(")", "]")); |
| | |
|
| | | if (tables[8].Contains("[")) |
| | | { |
| | | LightAttrType = JsonMapper.ToObject<int[]>(tables[7]); |
| | | LightAttrType = JsonMapper.ToObject<int[]>(tables[8]); |
| | | } |
| | | else |
| | | { |
| | | string[] LightAttrTypeStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LightAttrTypeStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttrType = new int[LightAttrTypeStringArray.Length]; |
| | | for (int i=0;i<LightAttrTypeStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | if (tables[8].Contains("[")) |
| | | if (tables[9].Contains("[")) |
| | | { |
| | | LightAttrValue = JsonMapper.ToObject<int[]>(tables[8]); |
| | | LightAttrValue = JsonMapper.ToObject<int[]>(tables[9]); |
| | | } |
| | | else |
| | | { |
| | | string[] LightAttrValueStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LightAttrValueStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttrValue = new int[LightAttrValueStringArray.Length]; |
| | | for (int i=0;i<LightAttrValueStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[9],out LightFightPower); |
| | | int.TryParse(tables[10],out LightFightPower); |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|