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.
This commit is contained in:
Melanie Thielker
2008-09-13 17:50:02 +00:00
parent e45db5917b
commit 91e3463582
4 changed files with 27 additions and 17 deletions

View File

@@ -175,6 +175,11 @@ namespace OpenSim.Region.Environment.Modules.World.Land
AddLandObject(fullSimParcel);
}
public List<ILandObject> AllParcels()
{
return new List<ILandObject>(landList.Values);
}
public List<ILandObject> ParcelsNearPoint(Vector3 position)
{
List<ILandObject> parcelsNear = new List<ILandObject>();