| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: Tuesday, July 15, 2025
|
| | | // [ Date ]: 2025年7月26日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
| | | {
|
| | |
|
| | | public int HeroID;
|
| | | public string Name;
|
| | | public int Country;
|
| | | public int Quality;
|
| | | public int Class;
|
| | |
| | | public int HPInheritPer;
|
| | | public string BatAttrDict;
|
| | | public int[] FetterIDList;
|
| | | public float UIScale;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out HeroID);
|
| | |
|
| | | int.TryParse(tables[1],out Country); |
| | | Name = tables[1];
|
| | |
|
| | | int.TryParse(tables[2],out Quality); |
| | | int.TryParse(tables[2],out Country); |
| | |
|
| | | int.TryParse(tables[3],out Class); |
| | | int.TryParse(tables[3],out Quality); |
| | |
|
| | | if (tables[4].Contains("[")) |
| | | int.TryParse(tables[4],out Class); |
| | |
|
| | | if (tables[5].Contains("[")) |
| | | { |
| | | SkinIDList = JsonMapper.ToObject<int[]>(tables[4]); |
| | | SkinIDList = JsonMapper.ToObject<int[]>(tables[5]); |
| | | } |
| | | else |
| | | { |
| | | string[] SkinIDListStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] SkinIDListStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | SkinIDList = new int[SkinIDListStringArray.Length]; |
| | | for (int i=0;i<SkinIDListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[5],out AtkSkillID); |
| | | int.TryParse(tables[6],out AtkSkillID); |
| | |
|
| | | int.TryParse(tables[6],out AngerSkillID); |
| | | int.TryParse(tables[7],out AngerSkillID); |
| | |
|
| | | int.TryParse(tables[7],out AtkInheritPer); |
| | | int.TryParse(tables[8],out AtkInheritPer); |
| | |
|
| | | int.TryParse(tables[8],out DefInheritPer); |
| | | int.TryParse(tables[9],out DefInheritPer); |
| | |
|
| | | int.TryParse(tables[9],out HPInheritPer); |
| | | int.TryParse(tables[10],out HPInheritPer); |
| | |
|
| | | BatAttrDict = tables[10];
|
| | | BatAttrDict = tables[11];
|
| | |
|
| | | if (tables[11].Contains("[")) |
| | | if (tables[12].Contains("[")) |
| | | { |
| | | FetterIDList = JsonMapper.ToObject<int[]>(tables[11]); |
| | | FetterIDList = JsonMapper.ToObject<int[]>(tables[12]); |
| | | } |
| | | else |
| | | { |
| | | string[] FetterIDListStringArray = tables[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] FetterIDListStringArray = tables[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | FetterIDList = new int[FetterIDListStringArray.Length]; |
| | | for (int i=0;i<FetterIDListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(FetterIDListStringArray[i],out FetterIDList[i]); |
| | | } |
| | | }
|
| | |
|
| | | float.TryParse(tables[13],out UIScale); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|