*Land has now been linked to the StorageManager. Next step is to fill in the functions for the different datastore interfaces for Land Objects.

This commit is contained in:
mingchen
2007-12-17 03:49:13 +00:00
parent 8e8c26acac
commit d845da215f
10 changed files with 155 additions and 64 deletions

View File

@@ -289,17 +289,17 @@ namespace OpenSim.Framework.Data.MySQL
return terret;
}
public void RemoveLandObject(uint id)
public void RemoveLandObject(uint id, LLUUID regionUUID)
{
}
public void StoreParcel(Land parcel)
public void StoreLandObject(Land parcel, LLUUID regionUUID)
{
}
public List<Land> LoadLandObjects()
public List<Framework.LandData> LoadLandObjects(LLUUID regionUUID)
{
return new List<Land>();
return new List<LandData>();
}
private void DisplayDataSet(DataSet ds, string title)

View File

@@ -26,7 +26,7 @@
*
*/
using libsecondlife;
using System.Collections.Generic;
namespace OpenSim.Framework
{
public class LandData
@@ -74,6 +74,8 @@ namespace OpenSim.Framework
public LLVector3 userLocation = new LLVector3();
public LLVector3 userLookAt = new LLVector3();
public List<ParcelManager.ParcelAccessEntry> parcelAccessList = new List<ParcelManager.ParcelAccessEntry>();
public LandData()
{
globalID = LLUUID.Random();
@@ -117,6 +119,17 @@ namespace OpenSim.Framework
landData.userLocation = userLocation;
landData.userLookAt = userLookAt;
landData.parcelAccessList.Clear();
foreach (ParcelManager.ParcelAccessEntry entry in parcelAccessList)
{
ParcelManager.ParcelAccessEntry newEntry = new ParcelManager.ParcelAccessEntry();
newEntry.AgentID = entry.AgentID;
newEntry.Flags = entry.Flags;
newEntry.Time = entry.Time;
landData.parcelAccessList.Add(newEntry);
}
return landData;
}
}