lcy
2025-11-05 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4
Main/Config/Configs/NPCExConfig.cs
@@ -1,32 +1,41 @@
//--------------------------------------------------------
//    [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 NPCExConfig : ConfigBase<int, NPCExConfig>
{
    public int NPCID;
   public long SuppressFightPower;
    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 NPCID);
         long.TryParse(tables[1],out SuppressFightPower);
    }
}
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年8月5日
//--------------------------------------------------------
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
public partial class NPCExConfig : ConfigBase<int, NPCExConfig>
{
    static NPCExConfig()
    {
        // 访问过静态构造函数
        visit = true;
    }
    public int NPCID;
   public long SuppressFightPower;
    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 NPCID);
         long.TryParse(tables[1],out SuppressFightPower);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}