diff options
Diffstat (limited to 'OpenSim/Framework/Location.cs')
-rw-r--r-- | OpenSim/Framework/Location.cs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/OpenSim/Framework/Location.cs b/OpenSim/Framework/Location.cs index 4019a79..a3d504c 100644 --- a/OpenSim/Framework/Location.cs +++ b/OpenSim/Framework/Location.cs | |||
@@ -14,6 +14,17 @@ namespace OpenSim.Framework | |||
14 | m_y = y; | 14 | m_y = y; |
15 | } | 15 | } |
16 | 16 | ||
17 | public Location(ulong regionHandle) | ||
18 | { | ||
19 | m_x = (int) regionHandle; | ||
20 | m_y = (int) (regionHandle >> 32); | ||
21 | } | ||
22 | |||
23 | public ulong RegionHandle | ||
24 | { | ||
25 | get { return ((ulong) m_x << 32 & (ulong) m_y); } | ||
26 | } | ||
27 | |||
17 | public int X | 28 | public int X |
18 | { | 29 | { |
19 | get { return m_x; } | 30 | get { return m_x; } |
@@ -47,11 +58,6 @@ namespace OpenSim.Framework | |||
47 | return X == x && y == Y; | 58 | return X == x && y == Y; |
48 | } | 59 | } |
49 | 60 | ||
50 | public UInt64 RegionHandle | ||
51 | { | ||
52 | get { return UInt64.MinValue; } | ||
53 | } | ||
54 | |||
55 | public override int GetHashCode() | 61 | public override int GetHashCode() |
56 | { | 62 | { |
57 | return X.GetHashCode() * 29 + Y.GetHashCode(); | 63 | return X.GetHashCode() * 29 + Y.GetHashCode(); |