|  |  | 
 |  |  | //-------------------------------------------------------- | 
 |  |  | //    [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月11日
 | 
 |  |  | //--------------------------------------------------------
 | 
 |  |  | 
 | 
 |  |  | 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 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);
 | 
 |  |  |         }
 | 
 |  |  |     }
 | 
 |  |  | }
 |