29 using System.Collections.Generic;
31 using System.Xml.Serialization;
35 namespace OpenSim.Framework
52 private static XmlSerializer serializer =
new XmlSerializer(typeof(
LandData));
54 private Vector3 _AABBMax =
new Vector3();
55 private Vector3 _AABBMin =
new Vector3();
56 private int _area = 0;
57 private uint _auctionID = 0;
58 private UUID _authBuyerID = UUID.Zero;
59 private ParcelCategory _category = ParcelCategory.None;
60 private int _claimDate = 0;
61 private int _claimPrice = 0;
62 private UUID _globalID = UUID.Zero;
63 private UUID _groupID = UUID.Zero;
64 private bool _isGroupOwned =
false;
65 private byte[] _bitmap =
new byte[512];
66 private string _description = String.Empty;
68 private uint _flags = (uint)ParcelFlags.AllowFly | (uint)ParcelFlags.AllowLandmark |
69 (uint)ParcelFlags.AllowAPrimitiveEntry |
70 (uint)ParcelFlags.AllowDeedToGroup |
71 (uint)ParcelFlags.CreateObjects | (uint)ParcelFlags.AllowOtherScripts |
72 (uint)ParcelFlags.AllowVoiceChat;
74 private byte _landingType = (byte)OpenMetaverse.LandingType.Direct;
75 private string _name =
"Your Parcel";
76 private ParcelStatus _status = ParcelStatus.Leased;
77 private int _localID = 0;
78 private byte _mediaAutoScale = 0;
79 private UUID _mediaID = UUID.Zero;
80 private string _mediaURL = String.Empty;
81 private string _musicURL = String.Empty;
82 private UUID _ownerID = UUID.Zero;
83 private List<LandAccessEntry> _parcelAccessList =
new List<LandAccessEntry>();
84 private float _passHours = 0;
85 private int _passPrice = 0;
86 private int _salePrice = 0;
87 private int _simwideArea = 0;
88 private int _simwidePrims = 0;
89 private UUID _snapshotID = UUID.Zero;
90 private Vector3 _userLocation =
new Vector3();
91 private Vector3 _userLookAt =
new Vector3();
92 private int _otherCleanTime = 0;
93 private string _mediaType =
"none/none";
94 private string _mediaDescription =
"";
95 private int _mediaHeight = 0;
96 private int _mediaWidth = 0;
97 private bool _mediaLoop =
false;
98 private bool _obscureMusic =
false;
99 private bool _obscureMedia =
false;
100 private float _dwell = 0;
102 public bool SeeAVs {
get; set; }
103 public bool AnyAVSounds {
get; set; }
104 public bool GroupAVSounds {
get; set; }
126 public bool ObscureMedia
130 return _obscureMedia;
134 _obscureMedia = value;
142 public bool ObscureMusic
146 return _obscureMusic;
150 _obscureMusic = value;
158 public bool MediaLoop
174 public int MediaHeight
182 _mediaHeight = value;
190 public int MediaWidth
206 public Vector3 AABBMax
221 public Vector3 AABBMin
251 public uint AuctionID
266 public UUID AuthBuyerID
274 _authBuyerID = value;
281 public ParcelCategory Category
311 public int ClaimPrice
356 public bool IsGroupOwned
360 return _isGroupOwned;
364 _isGroupOwned = value;
386 public string Description
394 _description = value;
417 public byte LandingType
425 _landingType = value;
447 public ParcelStatus Status
477 public byte MediaAutoScale
481 return _mediaAutoScale;
485 _mediaAutoScale = value;
519 public string MediaType
534 public string MusicURL
565 public List<LandAccessEntry> ParcelAccessList
569 return _parcelAccessList;
573 _parcelAccessList = value;
580 public float PassHours
626 public int SimwideArea
634 _simwideArea = value;
642 public int SimwidePrims
646 return _simwidePrims;
650 _simwidePrims = value;
657 public UUID SnapshotID
673 public Vector3 UserLocation
677 return _userLocation;
681 _userLocation = value;
689 public Vector3 UserLookAt
705 public int OtherCleanTime
709 return _otherCleanTime;
713 _otherCleanTime = value;
720 public string MediaDescription
724 return _mediaDescription;
728 _mediaDescription = value;
734 _globalID = UUID.Random();
737 GroupAVSounds =
true;
748 landData._AABBMax = _AABBMax;
749 landData._AABBMin = _AABBMin;
750 landData._area = _area;
751 landData._auctionID = _auctionID;
752 landData._authBuyerID = _authBuyerID;
753 landData._category = _category;
754 landData._claimDate = _claimDate;
755 landData._claimPrice = _claimPrice;
756 landData._globalID = _globalID;
757 landData._groupID = _groupID;
758 landData._isGroupOwned = _isGroupOwned;
759 landData._localID = _localID;
760 landData._landingType = _landingType;
761 landData._mediaAutoScale = _mediaAutoScale;
762 landData._mediaID = _mediaID;
763 landData._mediaURL = _mediaURL;
764 landData._musicURL = _musicURL;
765 landData._ownerID = _ownerID;
766 landData._bitmap = (byte[])_bitmap.Clone();
767 landData._description = _description;
768 landData._flags = _flags;
769 landData._name = _name;
770 landData._status = _status;
771 landData._passHours = _passHours;
772 landData._passPrice = _passPrice;
773 landData._salePrice = _salePrice;
774 landData._snapshotID = _snapshotID;
775 landData._userLocation = _userLocation;
776 landData._userLookAt = _userLookAt;
777 landData._otherCleanTime = _otherCleanTime;
778 landData._mediaType = _mediaType;
779 landData._mediaDescription = _mediaDescription;
780 landData._mediaWidth = _mediaWidth;
781 landData._mediaHeight = _mediaHeight;
782 landData._mediaLoop = _mediaLoop;
783 landData._obscureMusic = _obscureMusic;
784 landData._obscureMedia = _obscureMedia;
785 landData._simwideArea = _simwideArea;
786 landData._simwidePrims = _simwidePrims;
787 landData._dwell = _dwell;
788 landData.SeeAVs = SeeAVs;
789 landData.AnyAVSounds = AnyAVSounds;
790 landData.GroupAVSounds = GroupAVSounds;
792 landData._parcelAccessList.Clear();
796 newEntry.AgentID = entry.AgentID;
797 newEntry.Flags = entry.Flags;
798 newEntry.Expires = entry.Expires;
800 landData._parcelAccessList.Add(newEntry);
LandData Copy()
Make a new copy of the land data
Details of a Parcel of land