yyl
2025-07-29 b0a5d4688f1af73b5ad03ccc2df11c9aac1523a9
Main/Config/Configs/MainChapterConfig.cs
@@ -1,50 +1,48 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年7月7日
//--------------------------------------------------------
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System;
using UnityEngine;
using LitJson;
public partial class MainChapterConfig : ConfigBase<int, MainChapterConfig>
{
    public int ChapterID;
   public string ChapterName;
   public string Level;
   public string MapBG;
   public int[][] DailyBootyUpperList;
   public string BootyWeightList;
    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 ChapterID);
         ChapterName = tables[1];
         Level = tables[2];
         MapBG = tables[3];
         DailyBootyUpperList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]"));
         BootyWeightList = tables[5];
        }
        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 MainChapterConfig : ConfigBase<int, MainChapterConfig>
{
    public int ChapterID;
   public string ChapterName;
   public string Level;
   public string MapBG;
   public int[][] DailyBootyUpperList;
   public string BootyWeightList;
    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 ChapterID);
         ChapterName = tables[1];
         Level = tables[2];
         MapBG = tables[3];
         DailyBootyUpperList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]"));
         BootyWeightList = tables[5];
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}