29 using System.Collections.Generic;
31 using OpenSim.Framework;
33 namespace OpenSim.Data
57 public int coordX {
get {
return (
int)Util.WorldToRegionLoc((uint)posX); } }
62 public int coordY {
get {
return (
int)Util.WorldToRegionLoc((uint)posY); } }
64 public Dictionary<string, object>
Data;
73 List<RegionData> Get(
string regionName, UUID ScopeID);
75 List<RegionData> Get(
int xStart,
int yStart,
int xEnd,
int yEnd, UUID ScopeID);
79 bool SetDataItem(UUID principalID,
string item,
string value);
81 bool Delete(UUID regionID);
83 List<RegionData> GetDefaultRegions(UUID scopeID);
84 List<RegionData> GetDefaultHypergridRegions(UUID scopeID);
85 List<RegionData> GetFallbackRegions(UUID scopeID,
int x,
int y);
86 List<RegionData> GetHyperlinks(UUID scopeID);
91 private Vector2 m_origin;
95 m_origin =
new Vector2(x, y);
100 Vector2 vectorA =
new Vector2(regionA.
posX, regionA.
posY);
101 Vector2 vectorB =
new Vector2(regionB.
posX, regionB.
posY);
102 return Math.Sign(VectorDistance(m_origin, vectorA) - VectorDistance(m_origin, vectorB));
105 private float VectorDistance(Vector2 x, Vector2 y)
107 return (x - y).Length();
int posX
The position in meters of this region.
An interface for connecting to the authentication datastore
int posY
The position in meters of this region.
Dictionary< string, object > Data
int Compare(RegionData regionA, RegionData regionB)
RegionDataDistanceCompare(int x, int y)