// ------------------------------------------------------------------------------ // // This code was generated by a tool. // Mono Runtime Version: 2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Collections.Generic; public partial class ActorShowConfig : IConfigPostProcess { private static Dictionary actorShowDic = new Dictionary(); public void OnConfigParseCompleted() { string key = StringUtility.Contact(MapID, NpcID); if (!actorShowDic.ContainsKey(key)) { actorShowDic.Add(key, this); } } public static bool GetActorShowModel(int mapID, int npcID, out ActorShowConfig actorShowModel) { string key = StringUtility.Contact(mapID, npcID); if (actorShowDic.TryGetValue(key, out actorShowModel)) { return true; } return false; } public static bool GetActoreShowConfigByMapIdAndLineId(int mapId, int lineId, out ActorShowConfig config) { foreach (var item in actorShowDic.Values) { if (item.MapID == mapId && (item.line == lineId || item.line == 1000)) { config = item; return true; } } config = null; return false; } }