| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月4日
|
| | | // [ Date ]: 2025年8月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | {
|
| | | static HeroConfig()
|
| | | {
|
| | | if (isInit)
|
| | | {
|
| | | return;
|
| | | }
|
| | | LazyInit();
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int HeroID;
|
| | | public string Name;
|
| | | public int Country;
|
| | | public int Quality;
|
| | | public int AtkDistType;
|
| | | public int Class;
|
| | | public int Position;
|
| | | public int[] SkinIDList;
|
| | | public int AtkSkillID;
|
| | | public int AngerSkillID;
|
| | | public int AtkInheritPer;
|
| | | public int DefInheritPer;
|
| | | public int HPInheritPer;
|
| | | public string BatAttrDict;
|
| | | public Dictionary<int, int> BatAttrDict;
|
| | | public int[] FetterIDList;
|
| | | public float UIScale;
|
| | | public string Desc;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | |
|
| | | int.TryParse(tables[3],out Quality);
|
| | |
|
| | | int.TryParse(tables[4],out AtkDistType); |
| | | int.TryParse(tables[4],out Class); |
| | |
|
| | | int.TryParse(tables[5],out Class); |
| | | int.TryParse(tables[5],out Position); |
| | |
|
| | | if (tables[6].Contains("[")) |
| | | { |
| | |
| | |
|
| | | int.TryParse(tables[11],out HPInheritPer);
|
| | |
|
| | | BatAttrDict = tables[12];
|
| | | BatAttrDict = ConfigParse.ParseIntDict(tables[12]); |
| | |
|
| | | if (tables[13].Contains("[")) |
| | | { |
| | |
| | | }
|
| | |
|
| | | float.TryParse(tables[14],out UIScale);
|
| | |
|
| | | Desc = tables[15];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|