| | |
| | | public partial class BossInfoConfig : ConfigBase, 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); |
| | | }
|
| | | }
|
| | |
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public static bool IsStone(int npcId)
|
| | | {
|
| | | return stoneIds.Contains(npcId);
|
| | | }
|
| | |
|
| | | } |
| | | |
| | | } |