yyl
2025-07-29 b0a5d4688f1af73b5ad03ccc2df11c9aac1523a9
Main/Config/Configs/HeroTalentConfig.cs
@@ -1,44 +1,45 @@
//--------------------------------------------------------
//    [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 HeroTalentConfig : ConfigBase<int, HeroTalentConfig>
{
    public int TalentID;
   public int Quality;
   public int AttrID;
   public int AttrValue;
    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 TalentID);
         int.TryParse(tables[1],out Quality);
         int.TryParse(tables[2],out AttrID);
         int.TryParse(tables[3],out AttrValue);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年7月26日
//--------------------------------------------------------
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
public partial class HeroTalentConfig : ConfigBase<int, HeroTalentConfig>
{
    public int TalentID;
   public string Name;
   public int Quality;
   public int AttrID;
   public int AttrValue;
    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 TalentID);
         Name = tables[1];
         int.TryParse(tables[2],out Quality);
         int.TryParse(tables[3],out AttrID);
         int.TryParse(tables[4],out AttrValue);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}