From a12a495c22817f901792fd9e11c2a4b4a5c628a8 Mon Sep 17 00:00:00 2001 From: mingchen Date: Thu, 7 Jun 2007 00:04:50 +0000 Subject: *Added support to change most of a parcel's settings and flags (from the about land box) *Added the rest of the member variables relating to parcels in the ParcelData class --- Common/OpenSim.Framework/Types/ParcelData.cs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'Common/OpenSim.Framework') diff --git a/Common/OpenSim.Framework/Types/ParcelData.cs b/Common/OpenSim.Framework/Types/ParcelData.cs index b5c3946..53dbbbd 100644 --- a/Common/OpenSim.Framework/Types/ParcelData.cs +++ b/Common/OpenSim.Framework/Types/ParcelData.cs @@ -26,10 +26,20 @@ namespace OpenSim.Framework.Types public int salePrice = 0; //Unemeplemented. Parcels price. public libsecondlife.Parcel.ParcelStatus parcelStatus = libsecondlife.Parcel.ParcelStatus.None; public libsecondlife.Parcel.ParcelFlags parcelFlags = libsecondlife.Parcel.ParcelFlags.None; - + public byte landingType = 0; + public byte mediaAutoScale = 0; + public LLUUID mediaID = LLUUID.Zero; public int localID = 0; public LLUUID globalID = new LLUUID(); + public string mediaURL = ""; + public string musicURL = ""; + public float passHours = 0; + public int passPrice = 0; + public LLUUID snapshotID = LLUUID.Zero; + public LLVector3 userLocation = new LLVector3(); + public LLVector3 userLookAt = new LLVector3(); + public ParcelData() { globalID = LLUUID.Random(); @@ -52,13 +62,23 @@ namespace OpenSim.Framework.Types parcelData.groupPrims = this.groupPrims; parcelData.isGroupOwned = this.isGroupOwned; parcelData.localID = this.localID; + parcelData.landingType = this.landingType; + parcelData.mediaAutoScale = this.mediaAutoScale; + parcelData.mediaID = this.mediaID; + parcelData.mediaURL = this.mediaURL; + parcelData.musicURL = this.musicURL; parcelData.ownerID = this.ownerID; parcelData.parcelBitmapByteArray = (byte[])this.parcelBitmapByteArray.Clone(); parcelData.parcelDesc = this.parcelDesc; parcelData.parcelFlags = this.parcelFlags; parcelData.parcelName = this.parcelName; parcelData.parcelStatus = this.parcelStatus; + parcelData.passHours = this.passHours; + parcelData.passPrice = this.passPrice; parcelData.salePrice = this.salePrice; + parcelData.snapshotID = this.snapshotID; + parcelData.userLocation = this.userLocation; + parcelData.userLookAt = this.userLookAt; return parcelData; -- cgit v1.1