//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2026年3月31日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class ActHeroReturnArtConfig : ConfigBase<int, ActHeroReturnArtConfig>
|
{
|
static ActHeroReturnArtConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int HeroID;
|
public int[][] HeroNameColor;
|
public int[][] CallBubbleItems;
|
public string EntryTitleText;
|
public int PopInfoBgUIEffectId;
|
public string PopInfoText;
|
public int[] PopInfoColor;
|
public int MainSkinID;
|
|
public override int LoadKey(string _key)
|
{
|
int key = GetKey(_key);
|
return key;
|
}
|
|
public override void LoadConfig(string input)
|
{
|
try {
|
string[] tables = input.Split('\t');
|
int.TryParse(tables[0],out HeroID);
|
|
HeroNameColor = JsonMapper.ToObject<int[][]>(tables[1].Replace("(", "[").Replace(")", "]"));
|
|
CallBubbleItems = JsonMapper.ToObject<int[][]>(tables[2].Replace("(", "[").Replace(")", "]"));
|
|
EntryTitleText = tables[3];
|
|
int.TryParse(tables[4],out PopInfoBgUIEffectId);
|
|
PopInfoText = tables[5];
|
|
if (tables[6].Contains("["))
|
{
|
PopInfoColor = JsonMapper.ToObject<int[]>(tables[6]);
|
}
|
else
|
{
|
string[] PopInfoColorStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
PopInfoColor = new int[PopInfoColorStringArray.Length];
|
for (int i=0;i<PopInfoColorStringArray.Length;i++)
|
{
|
int.TryParse(PopInfoColorStringArray[i],out PopInfoColor[i]);
|
}
|
}
|
|
int.TryParse(tables[7],out MainSkinID);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|