| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2023年10月22日
|
| | | // [ Date ]: 2023年10月24日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | | using System.Linq;
|
| | |
|
| | | public partial class HorseStarUpConfig
|
| | | {
|
| | |
| | | public readonly int id;
|
| | | public readonly int HorseID;
|
| | | public readonly int HorseStar;
|
| | | public readonly List<int[]> StarUpNeedItemList;
|
| | | public readonly int[][] StarUpNeedItemList;
|
| | | public readonly int[] StarAttrType;
|
| | | public readonly int[] StarAttrValue;
|
| | |
|
| | |
| | |
|
| | | int.TryParse(tables[2],out HorseStar);
|
| | |
|
| | | StarUpNeedItemList = JsonMapper.ToObject<int[][]>(tables[3]).ToList(); |
| | | StarUpNeedItemList = JsonMapper.ToObject<int[][]>(tables[3]); |
| | |
|
| | | string[] StarAttrTypeStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | StarAttrType = new int[StarAttrTypeStringArray.Length]; |
| | | for (int i=0;i<StarAttrTypeStringArray.Length;i++) |
| | | if (tables[4].Contains("[")) |
| | | { |
| | | int.TryParse(StarAttrTypeStringArray[i],out StarAttrType[i]); |
| | | StarAttrType = JsonMapper.ToObject<int[]>(tables[4]); |
| | | } |
| | | else |
| | | { |
| | | string[] StarAttrTypeStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | StarAttrType = new int[StarAttrTypeStringArray.Length]; |
| | | for (int i=0;i<StarAttrTypeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(StarAttrTypeStringArray[i],out StarAttrType[i]); |
| | | } |
| | | }
|
| | |
|
| | | string[] StarAttrValueStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | StarAttrValue = new int[StarAttrValueStringArray.Length]; |
| | | for (int i=0;i<StarAttrValueStringArray.Length;i++) |
| | | if (tables[5].Contains("[")) |
| | | { |
| | | int.TryParse(StarAttrValueStringArray[i],out StarAttrValue[i]); |
| | | StarAttrValue = JsonMapper.ToObject<int[]>(tables[5]); |
| | | } |
| | | else |
| | | { |
| | | string[] StarAttrValueStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | StarAttrValue = new int[StarAttrValueStringArray.Length]; |
| | | for (int i=0;i<StarAttrValueStringArray.Length;i++) |
| | | { |
| | | int.TryParse(StarAttrValueStringArray[i],out StarAttrValue[i]); |
| | | } |
| | | }
|
| | | }
|
| | | catch (Exception ex)
|