diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/LandData.cs | 478 |
1 files changed, 401 insertions, 77 deletions
diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs index 11a4fb4..4553cc3 100644 --- a/OpenSim/Framework/LandData.cs +++ b/OpenSim/Framework/LandData.cs | |||
@@ -33,103 +33,427 @@ namespace OpenSim.Framework | |||
33 | { | 33 | { |
34 | public class LandData | 34 | public class LandData |
35 | { | 35 | { |
36 | public LLVector3 AABBMax = new LLVector3(); | 36 | public LLVector3 _AABBMax = new LLVector3(); |
37 | public LLVector3 AABBMin = new LLVector3(); | 37 | public LLVector3 _AABBMin = new LLVector3(); |
38 | public int area = 0; | 38 | public int _area = 0; |
39 | public uint auctionID = 0; //Unemplemented. If set to 0, not being auctioned | 39 | public uint _auctionID = 0; //Unemplemented. If set to 0, not being auctioned |
40 | public LLUUID authBuyerID = LLUUID.Zero; //Unemplemented. Authorized Buyer's UUID | 40 | public LLUUID _authBuyerID = LLUUID.Zero; //Unemplemented. Authorized Buyer's UUID |
41 | public Parcel.ParcelCategory category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category | 41 | public Parcel.ParcelCategory _category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category |
42 | public int claimDate = 0; | 42 | public int _claimDate = 0; |
43 | public int claimPrice = 0; //Unemplemented | 43 | public int _claimPrice = 0; //Unemplemented |
44 | public LLUUID globalID = LLUUID.Zero; | 44 | public LLUUID _globalID = LLUUID.Zero; |
45 | public LLUUID groupID = LLUUID.Zero; //Unemplemented | 45 | public LLUUID _groupID = LLUUID.Zero; //Unemplemented |
46 | public int groupPrims = 0; | 46 | public int _groupPrims = 0; |
47 | public bool isGroupOwned = false; | 47 | public bool _isGroupOwned = false; |
48 | public byte[] landBitmapByteArray = new byte[512]; | 48 | public byte[] _bitmap = new byte[512]; |
49 | public string landDesc = String.Empty; | 49 | public string _description = String.Empty; |
50 | 50 | ||
51 | 51 | ||
52 | public uint landFlags = (uint) Parcel.ParcelFlags.AllowFly | (uint) Parcel.ParcelFlags.AllowLandmark | | 52 | public uint _flags = (uint) Parcel.ParcelFlags.AllowFly | (uint) Parcel.ParcelFlags.AllowLandmark | |
53 | (uint) Parcel.ParcelFlags.AllowAllObjectEntry | | 53 | (uint) Parcel.ParcelFlags.AllowAllObjectEntry | |
54 | (uint) Parcel.ParcelFlags.AllowDeedToGroup | (uint) Parcel.ParcelFlags.AllowTerraform | | 54 | (uint) Parcel.ParcelFlags.AllowDeedToGroup | (uint) Parcel.ParcelFlags.AllowTerraform | |
55 | (uint) Parcel.ParcelFlags.CreateObjects | (uint) Parcel.ParcelFlags.AllowOtherScripts | | 55 | (uint) Parcel.ParcelFlags.CreateObjects | (uint) Parcel.ParcelFlags.AllowOtherScripts | |
56 | (uint) Parcel.ParcelFlags.SoundLocal; | 56 | (uint) Parcel.ParcelFlags.SoundLocal; |
57 | 57 | ||
58 | public byte landingType = 0; | 58 | public byte _landingType = 0; |
59 | public string landName = "Your Parcel"; | 59 | public string _name = "Your Parcel"; |
60 | public Parcel.ParcelStatus landStatus = Parcel.ParcelStatus.Leased; | 60 | public Parcel.ParcelStatus _status = Parcel.ParcelStatus.Leased; |
61 | public int localID = 0; | 61 | public int _localID = 0; |
62 | public byte mediaAutoScale = 0; | 62 | public byte _mediaAutoScale = 0; |
63 | public LLUUID mediaID = LLUUID.Zero; | 63 | public LLUUID _mediaID = LLUUID.Zero; |
64 | 64 | ||
65 | public string mediaURL = String.Empty; | 65 | public string _mediaURL = String.Empty; |
66 | public string musicURL = String.Empty; | 66 | public string _musicURL = String.Empty; |
67 | public int otherPrims = 0; | 67 | public int _otherPrims = 0; |
68 | public LLUUID ownerID = LLUUID.Zero; | 68 | public LLUUID _ownerID = LLUUID.Zero; |
69 | public int ownerPrims = 0; | 69 | public int _ownerPrims = 0; |
70 | public List<ParcelManager.ParcelAccessEntry> parcelAccessList = new List<ParcelManager.ParcelAccessEntry>(); | 70 | public List<ParcelManager.ParcelAccessEntry> _parcelAccessList = new List<ParcelManager.ParcelAccessEntry>(); |
71 | public float passHours = 0; | 71 | public float _passHours = 0; |
72 | public int passPrice = 0; | 72 | public int _passPrice = 0; |
73 | public int salePrice = 0; //Unemeplemented. Parcels price. | 73 | public int _salePrice = 0; //Unemeplemented. Parcels price. |
74 | public int selectedPrims = 0; | 74 | public int _selectedPrims = 0; |
75 | public int simwideArea = 0; | 75 | public int _simwideArea = 0; |
76 | public int simwidePrims = 0; | 76 | public int _simwidePrims = 0; |
77 | public LLUUID snapshotID = LLUUID.Zero; | 77 | public LLUUID _snapshotID = LLUUID.Zero; |
78 | public LLVector3 userLocation = new LLVector3(); | 78 | public LLVector3 _userLocation = new LLVector3(); |
79 | public LLVector3 userLookAt = new LLVector3(); | 79 | public LLVector3 _userLookAt = new LLVector3(); |
80 | |||
81 | public LLVector3 AABBMax { | ||
82 | get { | ||
83 | return _AABBMax; | ||
84 | } | ||
85 | set { | ||
86 | _AABBMax = value; | ||
87 | } | ||
88 | } | ||
89 | |||
90 | public LLVector3 AABBMin { | ||
91 | get { | ||
92 | return _AABBMin; | ||
93 | } | ||
94 | set { | ||
95 | _AABBMin = value; | ||
96 | } | ||
97 | } | ||
98 | |||
99 | public int Area { | ||
100 | get { | ||
101 | return _area; | ||
102 | } | ||
103 | set { | ||
104 | _area = value; | ||
105 | } | ||
106 | } | ||
107 | |||
108 | public uint AuctionID { | ||
109 | get { | ||
110 | return _auctionID; | ||
111 | } | ||
112 | set { | ||
113 | _auctionID = value; | ||
114 | } | ||
115 | } | ||
116 | |||
117 | public LLUUID AuthBuyerID { | ||
118 | get { | ||
119 | return _authBuyerID; | ||
120 | } | ||
121 | set { | ||
122 | _authBuyerID = value; | ||
123 | } | ||
124 | } | ||
125 | |||
126 | public libsecondlife.Parcel.ParcelCategory Category { | ||
127 | get { | ||
128 | return _category; | ||
129 | } | ||
130 | set { | ||
131 | _category = value; | ||
132 | } | ||
133 | } | ||
134 | |||
135 | public int ClaimDate { | ||
136 | get { | ||
137 | return _claimDate; | ||
138 | } | ||
139 | set { | ||
140 | _claimDate = value; | ||
141 | } | ||
142 | } | ||
143 | |||
144 | public int ClaimPrice { | ||
145 | get { | ||
146 | return _claimPrice; | ||
147 | } | ||
148 | set { | ||
149 | _claimPrice = value; | ||
150 | } | ||
151 | } | ||
152 | |||
153 | public LLUUID GlobalID { | ||
154 | get { | ||
155 | return _globalID; | ||
156 | } | ||
157 | set { | ||
158 | _globalID = value; | ||
159 | } | ||
160 | } | ||
161 | |||
162 | public LLUUID GroupID { | ||
163 | get { | ||
164 | return _groupID; | ||
165 | } | ||
166 | set { | ||
167 | _groupID = value; | ||
168 | } | ||
169 | } | ||
170 | |||
171 | public int GroupPrims { | ||
172 | get { | ||
173 | return _groupPrims; | ||
174 | } | ||
175 | set { | ||
176 | _groupPrims = value; | ||
177 | } | ||
178 | } | ||
179 | |||
180 | public bool IsGroupOwned { | ||
181 | get { | ||
182 | return _isGroupOwned; | ||
183 | } | ||
184 | set { | ||
185 | _isGroupOwned = value; | ||
186 | } | ||
187 | } | ||
188 | |||
189 | public byte[] Bitmap { | ||
190 | get { | ||
191 | return _bitmap; | ||
192 | } | ||
193 | set { | ||
194 | _bitmap = value; | ||
195 | } | ||
196 | } | ||
197 | |||
198 | public string Description { | ||
199 | get { | ||
200 | return _description; | ||
201 | } | ||
202 | set { | ||
203 | _description = value; | ||
204 | } | ||
205 | } | ||
206 | |||
207 | public uint Flags { | ||
208 | get { | ||
209 | return _flags; | ||
210 | } | ||
211 | set { | ||
212 | _flags = value; | ||
213 | } | ||
214 | } | ||
215 | |||
216 | public byte LandingType { | ||
217 | get { | ||
218 | return _landingType; | ||
219 | } | ||
220 | set { | ||
221 | _landingType = value; | ||
222 | } | ||
223 | } | ||
224 | |||
225 | public string Name { | ||
226 | get { | ||
227 | return _name; | ||
228 | } | ||
229 | set { | ||
230 | _name = value; | ||
231 | } | ||
232 | } | ||
233 | |||
234 | public libsecondlife.Parcel.ParcelStatus Status { | ||
235 | get { | ||
236 | return _status; | ||
237 | } | ||
238 | set { | ||
239 | _status = value; | ||
240 | } | ||
241 | } | ||
242 | |||
243 | public int LocalID { | ||
244 | get { | ||
245 | return _localID; | ||
246 | } | ||
247 | set { | ||
248 | _localID = value; | ||
249 | } | ||
250 | } | ||
251 | |||
252 | public byte MediaAutoScale { | ||
253 | get { | ||
254 | return _mediaAutoScale; | ||
255 | } | ||
256 | set { | ||
257 | _mediaAutoScale = value; | ||
258 | } | ||
259 | } | ||
260 | |||
261 | public LLUUID MediaID { | ||
262 | get { | ||
263 | return _mediaID; | ||
264 | } | ||
265 | set { | ||
266 | _mediaID = value; | ||
267 | } | ||
268 | } | ||
269 | |||
270 | public string MediaURL { | ||
271 | get { | ||
272 | return _mediaURL; | ||
273 | } | ||
274 | set { | ||
275 | _mediaURL = value; | ||
276 | } | ||
277 | } | ||
278 | |||
279 | public string MusicURL { | ||
280 | get { | ||
281 | return _musicURL; | ||
282 | } | ||
283 | set { | ||
284 | _musicURL = value; | ||
285 | } | ||
286 | } | ||
287 | |||
288 | public int OtherPrims { | ||
289 | get { | ||
290 | return _otherPrims; | ||
291 | } | ||
292 | set { | ||
293 | _otherPrims = value; | ||
294 | } | ||
295 | } | ||
296 | |||
297 | public LLUUID OwnerID { | ||
298 | get { | ||
299 | return _ownerID; | ||
300 | } | ||
301 | set { | ||
302 | _ownerID = value; | ||
303 | } | ||
304 | } | ||
305 | |||
306 | public int OwnerPrims { | ||
307 | get { | ||
308 | return _ownerPrims; | ||
309 | } | ||
310 | set { | ||
311 | _ownerPrims = value; | ||
312 | } | ||
313 | } | ||
314 | |||
315 | public List<libsecondlife.ParcelManager.ParcelAccessEntry> ParcelAccessList { | ||
316 | get { | ||
317 | return _parcelAccessList; | ||
318 | } | ||
319 | set { | ||
320 | _parcelAccessList = value; | ||
321 | } | ||
322 | } | ||
323 | |||
324 | public float PassHours { | ||
325 | get { | ||
326 | return _passHours; | ||
327 | } | ||
328 | set { | ||
329 | _passHours = value; | ||
330 | } | ||
331 | } | ||
332 | |||
333 | public int PassPrice { | ||
334 | get { | ||
335 | return _passPrice; | ||
336 | } | ||
337 | set { | ||
338 | _passPrice = value; | ||
339 | } | ||
340 | } | ||
341 | |||
342 | public int SalePrice { | ||
343 | get { | ||
344 | return _salePrice; | ||
345 | } | ||
346 | set { | ||
347 | _salePrice = value; | ||
348 | } | ||
349 | } | ||
350 | |||
351 | public int SelectedPrims { | ||
352 | get { | ||
353 | return _selectedPrims; | ||
354 | } | ||
355 | set { | ||
356 | _selectedPrims = value; | ||
357 | } | ||
358 | } | ||
359 | |||
360 | public int SimwideArea { | ||
361 | get { | ||
362 | return _simwideArea; | ||
363 | } | ||
364 | set { | ||
365 | _simwideArea = value; | ||
366 | } | ||
367 | } | ||
368 | |||
369 | public int SimwidePrims { | ||
370 | get { | ||
371 | return _simwidePrims; | ||
372 | } | ||
373 | set { | ||
374 | _simwidePrims = value; | ||
375 | } | ||
376 | } | ||
377 | |||
378 | public LLUUID SnapshotID { | ||
379 | get { | ||
380 | return _snapshotID; | ||
381 | } | ||
382 | set { | ||
383 | _snapshotID = value; | ||
384 | } | ||
385 | } | ||
386 | |||
387 | public LLVector3 UserLocation { | ||
388 | get { | ||
389 | return _userLocation; | ||
390 | } | ||
391 | set { | ||
392 | _userLocation = value; | ||
393 | } | ||
394 | } | ||
395 | |||
396 | public LLVector3 UserLookAt { | ||
397 | get { | ||
398 | return _userLookAt; | ||
399 | } | ||
400 | set { | ||
401 | _userLookAt = value; | ||
402 | } | ||
403 | } | ||
80 | 404 | ||
81 | public LandData() | 405 | public LandData() |
82 | { | 406 | { |
83 | globalID = LLUUID.Random(); | 407 | _globalID = LLUUID.Random(); |
84 | } | 408 | } |
85 | 409 | ||
86 | public LandData Copy() | 410 | public LandData Copy() |
87 | { | 411 | { |
88 | LandData landData = new LandData(); | 412 | LandData landData = new LandData(); |
89 | 413 | ||
90 | landData.AABBMax = AABBMax; | 414 | landData._AABBMax = _AABBMax; |
91 | landData.AABBMin = AABBMin; | 415 | landData._AABBMin = _AABBMin; |
92 | landData.area = area; | 416 | landData._area = _area; |
93 | landData.auctionID = auctionID; | 417 | landData._auctionID = _auctionID; |
94 | landData.authBuyerID = authBuyerID; | 418 | landData._authBuyerID = _authBuyerID; |
95 | landData.category = category; | 419 | landData._category = _category; |
96 | landData.claimDate = claimDate; | 420 | landData._claimDate = _claimDate; |
97 | landData.claimPrice = claimPrice; | 421 | landData._claimPrice = _claimPrice; |
98 | landData.globalID = globalID; | 422 | landData._globalID = _globalID; |
99 | landData.groupID = groupID; | 423 | landData._groupID = _groupID; |
100 | landData.groupPrims = groupPrims; | 424 | landData._groupPrims = _groupPrims; |
101 | landData.otherPrims = otherPrims; | 425 | landData._otherPrims = _otherPrims; |
102 | landData.ownerPrims = ownerPrims; | 426 | landData._ownerPrims = _ownerPrims; |
103 | landData.selectedPrims = selectedPrims; | 427 | landData._selectedPrims = _selectedPrims; |
104 | landData.isGroupOwned = isGroupOwned; | 428 | landData._isGroupOwned = _isGroupOwned; |
105 | landData.localID = localID; | 429 | landData._localID = _localID; |
106 | landData.landingType = landingType; | 430 | landData._landingType = _landingType; |
107 | landData.mediaAutoScale = mediaAutoScale; | 431 | landData._mediaAutoScale = _mediaAutoScale; |
108 | landData.mediaID = mediaID; | 432 | landData._mediaID = _mediaID; |
109 | landData.mediaURL = mediaURL; | 433 | landData._mediaURL = _mediaURL; |
110 | landData.musicURL = musicURL; | 434 | landData._musicURL = _musicURL; |
111 | landData.ownerID = ownerID; | 435 | landData._ownerID = _ownerID; |
112 | landData.landBitmapByteArray = (byte[]) landBitmapByteArray.Clone(); | 436 | landData._bitmap = (byte[]) _bitmap.Clone(); |
113 | landData.landDesc = landDesc; | 437 | landData._description = _description; |
114 | landData.landFlags = landFlags; | 438 | landData._flags = _flags; |
115 | landData.landName = landName; | 439 | landData._name = _name; |
116 | landData.landStatus = landStatus; | 440 | landData._status = _status; |
117 | landData.passHours = passHours; | 441 | landData._passHours = _passHours; |
118 | landData.passPrice = passPrice; | 442 | landData._passPrice = _passPrice; |
119 | landData.salePrice = salePrice; | 443 | landData._salePrice = _salePrice; |
120 | landData.snapshotID = snapshotID; | 444 | landData._snapshotID = _snapshotID; |
121 | landData.userLocation = userLocation; | 445 | landData._userLocation = _userLocation; |
122 | landData.userLookAt = userLookAt; | 446 | landData._userLookAt = _userLookAt; |
123 | 447 | ||
124 | landData.parcelAccessList.Clear(); | 448 | landData._parcelAccessList.Clear(); |
125 | foreach (ParcelManager.ParcelAccessEntry entry in parcelAccessList) | 449 | foreach (ParcelManager.ParcelAccessEntry entry in _parcelAccessList) |
126 | { | 450 | { |
127 | ParcelManager.ParcelAccessEntry newEntry = new ParcelManager.ParcelAccessEntry(); | 451 | ParcelManager.ParcelAccessEntry newEntry = new ParcelManager.ParcelAccessEntry(); |
128 | newEntry.AgentID = entry.AgentID; | 452 | newEntry.AgentID = entry.AgentID; |
129 | newEntry.Flags = entry.Flags; | 453 | newEntry.Flags = entry.Flags; |
130 | newEntry.Time = entry.Time; | 454 | newEntry.Time = entry.Time; |
131 | 455 | ||
132 | landData.parcelAccessList.Add(newEntry); | 456 | landData._parcelAccessList.Add(newEntry); |
133 | } | 457 | } |
134 | 458 | ||
135 | return landData; | 459 | return landData; |