Example #1
0
        public static List <WoWMap.MapDbcRecord> GetPhasesByMap(string internalMapName)
        {
            Initialize();

            WoWMap.MapDbcRecord root = _entries.FirstOrDefault(entry => entry.MapMPQName() == internalMapName);

            return(_entries.Where(entry => entry.IsPhase && entry.PhaseParent == root.Id).ToList());
        }
Example #2
0
        public static string GetParentMap(string internalMapName)
        {
            Initialize();

            WoWMap.MapDbcRecord root = _entries.FirstOrDefault(entry => entry.MapMPQName() == internalMapName);

            if (root.PhaseParent == 0)
            {
                return(string.Empty);
            }

            return(_entries.FirstOrDefault(entry => entry.Id == root.PhaseParent).MapMPQName());
        }