//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Saturday, January 06, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
using System.Collections.Generic;
|
|
namespace TableConfig
|
{
|
|
public partial class BossInfoConfig : ConfigBase, IConfigPostProcess
|
{
|
private static Dictionary<int, BossInfoConfig> bossInfoDict = new Dictionary<int, BossInfoConfig>();
|
|
public void OnConfigParseCompleted()
|
{
|
if (!bossInfoDict.ContainsKey(StoneNPCID))
|
{
|
bossInfoDict.Add(StoneNPCID, this);
|
}
|
}
|
|
public static BossInfoConfig GetBossInfoByStoneId(int _npcId)
|
{
|
if (bossInfoDict.ContainsKey(_npcId))
|
{
|
return bossInfoDict[_npcId];
|
}
|
return null;
|
}
|
|
}
|
|
}
|