mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
*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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user