From 91e346358283e43644ef9a28483d9fac0b159e45 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 13 Sep 2008 17:50:02 +0000 Subject: Remove the cruft of accessing a private member of another module's class from DataSnapshot and replace it with a best practices approach, making it much less dependent on the land module's internal structure and types. --- OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs') 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 return obj; } + public List AllParcels() + { + if (m_landManagementModule != null) + { + return m_landManagementModule.AllParcels(); + } + + return new List(); + } + public List ParcelsNearPoint(Vector3 position) { if (m_landManagementModule != null) -- cgit v1.1