public List <GridRegion> GetFallbackRegions(UUID scopeID, int x, int y) { List <GridRegion> ret = new List <GridRegion>(); List <GridRegion> regions = m_Database.GetFallbackRegions(scopeID, x, y); foreach (GridRegion r in regions) { if ((r.Flags & (int)RegionFlags.RegionOnline) != 0) { ret.Add(r); } } m_log.DebugFormat("[GRID SERVICE]: Fallback returned {0} regions", ret.Count); return(ret); }
public virtual List <GridRegion> GetFallbackRegions(UUID scopeID, int x, int y) { List <GridRegion> regions = m_Database.GetFallbackRegions(scopeID, x, y); #if (!ISWIN) List <GridRegion> ret = new List <GridRegion>(); foreach (GridRegion r in regions) { if ((r.Flags & (int)RegionFlags.RegionOnline) != 0) { ret.Add(r); } } #else List <GridRegion> ret = regions.Where(r => (r.Flags & (int)RegionFlags.RegionOnline) != 0).ToList(); #endif MainConsole.Instance.DebugFormat("[GRID SERVICE]: Fallback returned {0} regions", ret.Count); return(ret); }