//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2025年5月22日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Threading;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class FamilyConfig : ConfigBase<int, FamilyConfig>
|
{
|
|
public int familyLV;
|
public int memberCnt;
|
public int deputyLeaderCnt;
|
public int eliteCnt;
|
public int needMoney;
|
public int weekMissionMoneyMax;
|
public int bossFBCnt;
|
public int ZhenbaogeWeights;
|
|
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 familyLV);
|
|
int.TryParse(tables[1],out memberCnt);
|
|
int.TryParse(tables[2],out deputyLeaderCnt);
|
|
int.TryParse(tables[3],out eliteCnt);
|
|
int.TryParse(tables[4],out needMoney);
|
|
int.TryParse(tables[5],out weekMissionMoneyMax);
|
|
int.TryParse(tables[6],out bossFBCnt);
|
|
int.TryParse(tables[7],out ZhenbaogeWeights);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|