//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2025年12月8日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class FuncOpenLVConfig : ConfigBase<int, FuncOpenLVConfig>
|
{
|
static FuncOpenLVConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int FuncId;
|
public int LimitLV;
|
public int LimiRealmLV;
|
public int LimitMissionID;
|
public int OpenDay;
|
public int ManLevel;
|
public string Name;
|
public string Desc;
|
public string Icon;
|
public int PreviewIndex;
|
public int[][] AwardList;
|
|
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 FuncId);
|
|
int.TryParse(tables[1],out LimitLV);
|
|
int.TryParse(tables[2],out LimiRealmLV);
|
|
int.TryParse(tables[3],out LimitMissionID);
|
|
int.TryParse(tables[4],out OpenDay);
|
|
int.TryParse(tables[5],out ManLevel);
|
|
Name = tables[6];
|
|
Desc = tables[7];
|
|
Icon = tables[8];
|
|
int.TryParse(tables[9],out PreviewIndex);
|
|
AwardList = JsonMapper.ToObject<int[][]>(tables[10].Replace("(", "[").Replace(")", "]"));
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|