aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/LandData.cs
diff options
context:
space:
mode:
authormingchen2007-12-17 03:49:13 +0000
committermingchen2007-12-17 03:49:13 +0000
commitd845da215f8d30ef3f34a3c207fb892c815d1fac (patch)
treea1714f51422e4b5639d28459569d6235c86751d1 /OpenSim/Framework/LandData.cs
parentAgain, thanks to Alondria for: (diff)
downloadopensim-SC-d845da215f8d30ef3f34a3c207fb892c815d1fac.zip
opensim-SC-d845da215f8d30ef3f34a3c207fb892c815d1fac.tar.gz
opensim-SC-d845da215f8d30ef3f34a3c207fb892c815d1fac.tar.bz2
opensim-SC-d845da215f8d30ef3f34a3c207fb892c815d1fac.tar.xz
*Land has now been linked to the StorageManager. Next step is to fill in the functions for the different datastore interfaces for Land Objects.
Diffstat (limited to 'OpenSim/Framework/LandData.cs')
-rw-r--r--OpenSim/Framework/LandData.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs
index 8b6c654..e35aa0e 100644
--- a/OpenSim/Framework/LandData.cs
+++ b/OpenSim/Framework/LandData.cs
@@ -26,7 +26,7 @@
26* 26*
27*/ 27*/
28using libsecondlife; 28using libsecondlife;
29 29using System.Collections.Generic;
30namespace OpenSim.Framework 30namespace OpenSim.Framework
31{ 31{
32 public class LandData 32 public class LandData
@@ -74,6 +74,8 @@ namespace OpenSim.Framework
74 public LLVector3 userLocation = new LLVector3(); 74 public LLVector3 userLocation = new LLVector3();
75 public LLVector3 userLookAt = new LLVector3(); 75 public LLVector3 userLookAt = new LLVector3();
76 76
77 public List<ParcelManager.ParcelAccessEntry> parcelAccessList = new List<ParcelManager.ParcelAccessEntry>();
78
77 public LandData() 79 public LandData()
78 { 80 {
79 globalID = LLUUID.Random(); 81 globalID = LLUUID.Random();
@@ -117,6 +119,17 @@ namespace OpenSim.Framework
117 landData.userLocation = userLocation; 119 landData.userLocation = userLocation;
118 landData.userLookAt = userLookAt; 120 landData.userLookAt = userLookAt;
119 121
122 landData.parcelAccessList.Clear();
123 foreach (ParcelManager.ParcelAccessEntry entry in parcelAccessList)
124 {
125 ParcelManager.ParcelAccessEntry newEntry = new ParcelManager.ParcelAccessEntry();
126 newEntry.AgentID = entry.AgentID;
127 newEntry.Flags = entry.Flags;
128 newEntry.Time = entry.Time;
129
130 landData.parcelAccessList.Add(newEntry);
131 }
132
120 return landData; 133 return landData;
121 } 134 }
122 } 135 }