//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: Tuesday, December 9, 2025
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class HeroQualityBreakConfig : ConfigBase<int, HeroQualityBreakConfig>
|
{
|
static HeroQualityBreakConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int QualityBreankID;
|
public int Quality;
|
public int BreakLV;
|
public int UPLVNeed;
|
public int[][] UPCostItemList;
|
|
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 QualityBreankID);
|
|
int.TryParse(tables[1],out Quality);
|
|
int.TryParse(tables[2],out BreakLV);
|
|
int.TryParse(tables[3],out UPLVNeed);
|
|
UPCostItemList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]"));
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|