//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2026年4月28日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class ActTaskTempConfig : ConfigBase<int, ActTaskTempConfig>
|
{
|
static ActTaskTempConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int ID;
|
public int TemplateID;
|
public int TasklD;
|
public int TaskType;
|
public int NeedValue;
|
public int[][] AwardItemList;
|
public int GuideID;
|
|
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 ID);
|
|
int.TryParse(tables[1],out TemplateID);
|
|
int.TryParse(tables[2],out TasklD);
|
|
int.TryParse(tables[3],out TaskType);
|
|
int.TryParse(tables[4],out NeedValue);
|
|
AwardItemList = JsonMapper.ToObject<int[][]>(tables[5].Replace("(", "[").Replace(")", "]"));
|
|
int.TryParse(tables[6],out GuideID);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|