少年修仙传客户端代码仓库
hch
2025-04-03 c154ac0832fe4379a00d3e1cda700e7d2a7383c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//--------------------------------------------------------
//    [Author]:           Alee
//    [  Date ]:           2021年7月1日
//--------------------------------------------------------
 
using LitJson;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
//分部类
public partial class ILNPCRealmStrengthenConfig : IConfigPostProcess
{
    private static Dictionary<Int2, ILNPCRealmStrengthenConfig> npcDict = new Dictionary<Int2, ILNPCRealmStrengthenConfig>();
 
 
    public void OnConfigParseCompleted()
    {
        Int2 typeID = new Int2(NPCID, RealmDifficulty);
        if (!npcDict.ContainsKey(typeID))
        {
            npcDict.Add(typeID, this);
        }
    }
 
    public static ILNPCRealmStrengthenConfig GetConfig(Int2 npcRealmID)
    {
        if (npcDict.ContainsKey(npcRealmID))
        {
            return npcDict[npcRealmID];
        }
        return null;
    }
 
}