| //--------------------------------------------------------  | 
| //    [Author]:           YYL  | 
| //    [  Date ]:           2025年8月5日  | 
| //--------------------------------------------------------  | 
|   | 
| using System.Collections.Generic;  | 
| using System;  | 
| using UnityEngine;  | 
| using LitJson;  | 
|   | 
| public partial class FrameAnimationConfig : ConfigBase<string, FrameAnimationConfig>  | 
| {  | 
|     static FrameAnimationConfig()  | 
|     {  | 
|         // 访问过静态构造函数  | 
|         visit = true;   | 
|     }  | 
|   | 
|     public string name;  | 
|     public int frameCnt;  | 
|     public int speed;  | 
|     public int frameType;  | 
|     public int EmojiPackID;  | 
|     public string folder;  | 
|   | 
|     public override string LoadKey(string _key)  | 
|     {  | 
|         string key = GetKey(_key);  | 
|         return key;  | 
|     }  | 
|   | 
|     public override void LoadConfig(string input)  | 
|     {  | 
|         try {  | 
|         string[] tables = input.Split('\t');  | 
|         name = tables[0];  | 
|   | 
|             int.TryParse(tables[1],out frameCnt);   | 
|   | 
|             int.TryParse(tables[2],out speed);   | 
|   | 
|             int.TryParse(tables[3],out frameType);   | 
|   | 
|             int.TryParse(tables[4],out EmojiPackID);   | 
|   | 
|             folder = tables[5];  | 
|         }  | 
|         catch (Exception exception)  | 
|         {  | 
|             Debug.LogError(exception);  | 
|         }  | 
|     }  | 
| }  |