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(); }
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); }
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(); }