mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
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:
@@ -105,6 +105,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
return obj;
|
||||
}
|
||||
|
||||
public List<ILandObject> AllParcels()
|
||||
{
|
||||
if (m_landManagementModule != null)
|
||||
{
|
||||
return m_landManagementModule.AllParcels();
|
||||
}
|
||||
|
||||
return new List<ILandObject>();
|
||||
}
|
||||
|
||||
public List<ILandObject> ParcelsNearPoint(Vector3 position)
|
||||
{
|
||||
if (m_landManagementModule != null)
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user