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