diff options
Diffstat (limited to 'OpenSim/Framework/LandData.cs')
-rw-r--r-- | OpenSim/Framework/LandData.cs | 15 |
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 | */ |
28 | using libsecondlife; | 28 | using libsecondlife; |
29 | 29 | using System.Collections.Generic; | |
30 | namespace OpenSim.Framework | 30 | namespace 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 | } |