//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2026年5月20日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class FamilyAtkDefBatTreasureConfig : ConfigBase<int, FamilyAtkDefBatTreasureConfig>
|
{
|
static FamilyAtkDefBatTreasureConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int AwardID;
|
public int LibType;
|
public int AwardColor;
|
public int ItemID;
|
public int ItemCount;
|
public int SortOrder;
|
|
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 AwardID);
|
|
int.TryParse(tables[1],out LibType);
|
|
int.TryParse(tables[2],out AwardColor);
|
|
int.TryParse(tables[3],out ItemID);
|
|
int.TryParse(tables[4],out ItemCount);
|
|
int.TryParse(tables[5],out SortOrder);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|