//--------------------------------------------------------  
 | 
//    [Author]:           YYL  
 | 
//    [  Date ]:           Monday, September 1, 2025  
 | 
//--------------------------------------------------------  
 | 
  
 | 
using System.Collections.Generic;  
 | 
using System;  
 | 
using UnityEngine;  
 | 
using LitJson;  
 | 
  
 | 
public partial class NPCLineupConfig : ConfigBase<int, NPCLineupConfig>  
 | 
{  
 | 
    static NPCLineupConfig()  
 | 
    {  
 | 
        // 访问过静态构造函数  
 | 
        visit = true;   
 | 
    }  
 | 
  
 | 
    public int LineupID;  
 | 
    public int PosNPCID1;  
 | 
    public int PosNPCID2;  
 | 
    public int PosNPCID3;  
 | 
    public int PosNPCID4;  
 | 
    public int PosNPCID5;  
 | 
    public int PosNPCID6;  
 | 
    public int PosNPCID7;  
 | 
    public int BossID;  
 | 
    public int[] SkillIDExList;  
 | 
    public int SkillExCnt;  
 | 
  
 | 
    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 LineupID);   
 | 
  
 | 
            int.TryParse(tables[1],out PosNPCID1);   
 | 
  
 | 
            int.TryParse(tables[2],out PosNPCID2);   
 | 
  
 | 
            int.TryParse(tables[3],out PosNPCID3);   
 | 
  
 | 
            int.TryParse(tables[4],out PosNPCID4);   
 | 
  
 | 
            int.TryParse(tables[5],out PosNPCID5);   
 | 
  
 | 
            int.TryParse(tables[6],out PosNPCID6);   
 | 
  
 | 
            int.TryParse(tables[7],out PosNPCID7);   
 | 
  
 | 
            int.TryParse(tables[8],out BossID);   
 | 
  
 | 
            if (tables[9].Contains("[")) 
 | 
            { 
 | 
                SkillIDExList = JsonMapper.ToObject<int[]>(tables[9]); 
 | 
            } 
 | 
            else 
 | 
            { 
 | 
                string[] SkillIDExListStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); 
 | 
                SkillIDExList = new int[SkillIDExListStringArray.Length]; 
 | 
                for (int i=0;i<SkillIDExListStringArray.Length;i++) 
 | 
                { 
 | 
                     int.TryParse(SkillIDExListStringArray[i],out SkillIDExList[i]); 
 | 
                } 
 | 
            }  
 | 
  
 | 
            int.TryParse(tables[10],out SkillExCnt);   
 | 
        }  
 | 
        catch (Exception exception)  
 | 
        {  
 | 
            Debug.LogError(exception);  
 | 
        }  
 | 
    }  
 | 
}  
 |