mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
add gridservice GetOnlineRegions()
This commit is contained in:
@@ -431,6 +431,11 @@ namespace OpenSim.Data.PGSQL
|
||||
return Get((int)RegionFlags.Hyperlink, scopeID);
|
||||
}
|
||||
|
||||
public List<RegionData> GetOnlineRegions(UUID scopeID)
|
||||
{
|
||||
return Get((int)RegionFlags.RegionOnline, scopeID);
|
||||
}
|
||||
|
||||
private List<RegionData> Get(int regionFlags, UUID scopeID)
|
||||
{
|
||||
string sql = "SELECT * FROM " + m_Realm + " WHERE (\"flags\" & " + regionFlags.ToString() + ") <> 0";
|
||||
|
||||
Reference in New Issue
Block a user