//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: Friday, June 27, 2025
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Threading;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class PlayerPropertyConfig : ConfigBase<int, PlayerPropertyConfig>
|
{
|
|
public int ID;
|
public string Name;
|
public string ShowName;
|
public int ISPercentage;
|
public int type;
|
public int decimalCount;
|
public int showType;
|
public int showSequence;
|
public string desc;
|
public string Parameter;
|
|
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);
|
|
Name = tables[1];
|
|
ShowName = tables[2];
|
|
int.TryParse(tables[3],out ISPercentage);
|
|
int.TryParse(tables[4],out type);
|
|
int.TryParse(tables[5],out decimalCount);
|
|
int.TryParse(tables[6],out showType);
|
|
int.TryParse(tables[7],out showSequence);
|
|
desc = tables[8];
|
|
Parameter = tables[9];
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|