//-------------------------------------------------------- 
 | 
//    [Author]:           YYL 
 | 
//    [  Date ]:           2025年8月5日 
 | 
//-------------------------------------------------------- 
 | 
  
 | 
using System.Collections.Generic; 
 | 
using System; 
 | 
using UnityEngine; 
 | 
using LitJson; 
 | 
  
 | 
public partial class PlayerAttrConfig : ConfigBase<int, PlayerAttrConfig> 
 | 
{ 
 | 
    static PlayerAttrConfig() 
 | 
    { 
 | 
        // 访问过静态构造函数 
 | 
        visit = true;  
 | 
    } 
 | 
  
 | 
    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); 
 | 
        } 
 | 
    } 
 | 
} 
 |