|  |  | 
 |  |  | //-------------------------------------------------------- | 
 |  |  | //    [Author]:           YYL | 
 |  |  | //    [  Date ]:           2025年5月19日 | 
 |  |  | //-------------------------------------------------------- | 
 |  |  |  | 
 |  |  | using System.Collections.Generic; | 
 |  |  | using System.IO; | 
 |  |  | using System.Threading; | 
 |  |  | using System; | 
 |  |  | using UnityEngine; | 
 |  |  | using LitJson; | 
 |  |  |  | 
 |  |  | public partial class RichTextMsgReplaceConfig : ConfigBase<int, RichTextMsgReplaceConfig> | 
 |  |  | { | 
 |  |  |  | 
 |  |  |     public int id; | 
 |  |  |    public string Identification; | 
 |  |  |    public int Number; | 
 |  |  |    public string Content; | 
 |  |  |  | 
 |  |  |     public override int LoadKey(string _key) | 
 |  |  |     { | 
 |  |  |         int key = GetKey(_key); | 
 |  |  |         return key; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public override void LoadConfig(string input) | 
 |  |  |     { | 
 |  |  |         string[] tables = input.Split('\t'); | 
 |  |  |         int.TryParse(tables[0],out id);  | 
 |  |  |  | 
 |  |  |          Identification = tables[1]; | 
 |  |  |  | 
 |  |  |          int.TryParse(tables[2],out Number);  | 
 |  |  |  | 
 |  |  |          Content = tables[3]; | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | //--------------------------------------------------------
 | 
 |  |  | //    [Author]:           YYL
 | 
 |  |  | //    [  Date ]:           2025年8月5日
 | 
 |  |  | //--------------------------------------------------------
 | 
 |  |  | 
 | 
 |  |  | using System.Collections.Generic;
 | 
 |  |  | using System;
 | 
 |  |  | using UnityEngine;
 | 
 |  |  | using LitJson;
 | 
 |  |  | 
 | 
 |  |  | public partial class RichTextMsgReplaceConfig : ConfigBase<int, RichTextMsgReplaceConfig>
 | 
 |  |  | {
 | 
 |  |  |     static RichTextMsgReplaceConfig()
 | 
 |  |  |     {
 | 
 |  |  |         // 访问过静态构造函数
 | 
 |  |  |         visit = true;  | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  |     public int id;
 | 
 |  |  |    public string Identification;
 | 
 |  |  |    public int Number;
 | 
 |  |  |    public string Content;
 | 
 |  |  | 
 | 
 |  |  |     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);  | 
 |  |  | 
 | 
 |  |  |          Identification = tables[1];
 | 
 |  |  | 
 | 
 |  |  |          int.TryParse(tables[2],out Number);  | 
 |  |  | 
 | 
 |  |  |          Content = tables[3];
 | 
 |  |  |         }
 | 
 |  |  |         catch (Exception exception)
 | 
 |  |  |         {
 | 
 |  |  |             Debug.LogError(exception);
 | 
 |  |  |         }
 | 
 |  |  |     }
 | 
 |  |  | }
 |