Exemple #1
0
        private WoWMap(int reqId)
        {
            init();
            MapDbcRecord tempMapDbcRecord = new MapDbcRecord();
            bool         found            = false;

            for (int i = 0; i < mapDB2.RecordsCount - 1; i++)
            {
                tempMapDbcRecord = _cachedRecords[i];
                if (tempMapDbcRecord.Id == reqId)
                {
                    found = true;
                    break;
                }
            }
            _rMapDBCRecord0 = found ? tempMapDbcRecord : new MapDbcRecord();
        }
Exemple #2
0
        public static List <MapDbcRecord> WoWMaps(InstanceType iType, MapType mType)
        {
            init();

            MapDbcRecord        tempMapDbcRecord = new MapDbcRecord();
            List <MapDbcRecord> result           = new List <MapDbcRecord>();

            for (int i = 0; i < mapDB2.RecordsCount - 1; i++)
            {
                tempMapDbcRecord = _cachedRecords[i];
                if (!tempMapDbcRecord.IsBlacklistedMap() && tempMapDbcRecord.InstanceType == iType && tempMapDbcRecord.MapType == mType && !tempMapDbcRecord.IsTestMap() && !tempMapDbcRecord.IsGarrisonMap())
                {
                    result.Add(tempMapDbcRecord);
                }
            }
            return(result);
        }
Exemple #3
0
        private WoWMap(string name, bool mpq = false)
        {
            init();
            MapDbcRecord tempMapDbcRecord = new MapDbcRecord();
            bool         found            = false;

            for (int i = 0; i < mapDB2.RecordsCount - 1; i++)
            {
                tempMapDbcRecord = _cachedRecords[i];
                string temp = (mpq ? tempMapDbcRecord.MapMPQName() : tempMapDbcRecord.MapName());
                if (temp == name)
                {
                    found = true;
                    break;
                }
            }
            _rMapDBCRecord0 = found ? tempMapDbcRecord : new MapDbcRecord();
        }