//--------------------------------------------------------
|
// [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;
|
}
|
|
}
|