| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年12月21日
|
| | | // [ Date ]: 2026年2月3日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | }
|
| | |
|
| | | public int SkinID;
|
| | | public string Name;
|
| | | public int BeautyID;
|
| | | public int UnlockWay;
|
| | | public int UnlockValue;
|
| | |
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out SkinID);
|
| | |
|
| | | int.TryParse(tables[1],out BeautyID); |
| | | Name = tables[1];
|
| | |
|
| | | int.TryParse(tables[2],out UnlockWay); |
| | | int.TryParse(tables[2],out BeautyID); |
| | |
|
| | | int.TryParse(tables[3],out UnlockValue); |
| | | int.TryParse(tables[3],out UnlockWay); |
| | |
|
| | | int.TryParse(tables[4],out UnlockNeedCnt); |
| | | int.TryParse(tables[4],out UnlockValue); |
| | |
|
| | | int.TryParse(tables[5],out UpNeedCnt); |
| | | int.TryParse(tables[5],out UnlockNeedCnt); |
| | |
|
| | | int.TryParse(tables[6],out StarMax); |
| | | int.TryParse(tables[6],out UpNeedCnt); |
| | |
|
| | | if (tables[7].Contains("[")) |
| | | int.TryParse(tables[7],out StarMax); |
| | |
|
| | | if (tables[8].Contains("[")) |
| | | { |
| | | AttrIDList = JsonMapper.ToObject<int[]>(tables[7]); |
| | | AttrIDList = JsonMapper.ToObject<int[]>(tables[8]); |
| | | } |
| | | else |
| | | { |
| | | string[] AttrIDListStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] AttrIDListStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrIDList = new int[AttrIDListStringArray.Length]; |
| | | for (int i=0;i<AttrIDListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | if (tables[8].Contains("[")) |
| | | if (tables[9].Contains("[")) |
| | | { |
| | | InitAttrValueList = JsonMapper.ToObject<int[]>(tables[8]); |
| | | InitAttrValueList = JsonMapper.ToObject<int[]>(tables[9]); |
| | | } |
| | | else |
| | | { |
| | | string[] InitAttrValueListStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] InitAttrValueListStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | InitAttrValueList = new int[InitAttrValueListStringArray.Length]; |
| | | for (int i=0;i<InitAttrValueListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | if (tables[9].Contains("[")) |
| | | if (tables[10].Contains("[")) |
| | | { |
| | | AttrPerStarAddList = JsonMapper.ToObject<int[]>(tables[9]); |
| | | AttrPerStarAddList = JsonMapper.ToObject<int[]>(tables[10]); |
| | | } |
| | | else |
| | | { |
| | | string[] AttrPerStarAddListStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] AttrPerStarAddListStringArray = tables[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrPerStarAddList = new int[AttrPerStarAddListStringArray.Length]; |
| | | for (int i=0;i<AttrPerStarAddListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | HeadIcon = tables[10];
|
| | | HeadIcon = tables[11];
|
| | |
|
| | | SmallRole = tables[11];
|
| | | SmallRole = tables[12];
|
| | |
|
| | | BigRole = tables[12];
|
| | | BigRole = tables[13];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|