diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | 10 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs index 1e1291a..8747bd4 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | |||
@@ -105,6 +105,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
105 | return obj; | 105 | return obj; |
106 | } | 106 | } |
107 | 107 | ||
108 | public List<ILandObject> AllParcels() | ||
109 | { | ||
110 | if (m_landManagementModule != null) | ||
111 | { | ||
112 | return m_landManagementModule.AllParcels(); | ||
113 | } | ||
114 | |||
115 | return new List<ILandObject>(); | ||
116 | } | ||
117 | |||
108 | public List<ILandObject> ParcelsNearPoint(Vector3 position) | 118 | public List<ILandObject> ParcelsNearPoint(Vector3 position) |
109 | { | 119 | { |
110 | if (m_landManagementModule != null) | 120 | if (m_landManagementModule != null) |
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index f4ba9a3..bf51edb 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | |||
@@ -175,6 +175,11 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
175 | AddLandObject(fullSimParcel); | 175 | AddLandObject(fullSimParcel); |
176 | } | 176 | } |
177 | 177 | ||
178 | public List<ILandObject> AllParcels() | ||
179 | { | ||
180 | return new List<ILandObject>(landList.Values); | ||
181 | } | ||
182 | |||
178 | public List<ILandObject> ParcelsNearPoint(Vector3 position) | 183 | public List<ILandObject> ParcelsNearPoint(Vector3 position) |
179 | { | 184 | { |
180 | List<ILandObject> parcelsNear = new List<ILandObject>(); | 185 | List<ILandObject> parcelsNear = new List<ILandObject>(); |