public List <GridRegion> GetDefaultRegions(UUID scopeID) { List <GridRegion> ret = new List <GridRegion>(); List <GridRegion> regions = m_Database.GetDefaultRegions(scopeID); foreach (GridRegion r in regions) { if ((r.Flags & (int)RegionFlags.RegionOnline) != 0) { ret.Add(r); } } m_log.DebugFormat("[GRID SERVICE]: GetDefaultRegions returning {0} regions", ret.Count); return(ret); }
public virtual List <GridRegion> GetDefaultRegions(UUID scopeID) { List <GridRegion> regions = m_Database.GetDefaultRegions(scopeID); #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]: GetDefaultRegions returning {0} regions", ret.Count); return(ret); }