aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/LandData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/LandData.cs')
-rw-r--r--OpenSim/Framework/LandData.cs123
1 files changed, 123 insertions, 0 deletions
diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs
new file mode 100644
index 0000000..ca948ef
--- /dev/null
+++ b/OpenSim/Framework/LandData.cs
@@ -0,0 +1,123 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28using libsecondlife;
29
30namespace OpenSim.Framework
31{
32 public class LandData
33 {
34 public byte[] landBitmapByteArray = new byte[512];
35 public string landName = "Your Parcel";
36 public string landDesc = "";
37 public LLUUID ownerID = new LLUUID();
38 public bool isGroupOwned = false;
39 public LLVector3 AABBMin = new LLVector3();
40 public LLVector3 AABBMax = new LLVector3();
41 public int area = 0;
42 public uint auctionID = 0; //Unemplemented. If set to 0, not being auctioned
43 public LLUUID authBuyerID = new LLUUID(); //Unemplemented. Authorized Buyer's UUID
44 public Parcel.ParcelCategory category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category
45 public int claimDate = 0; //Unemplemented
46 public int claimPrice = 0; //Unemplemented
47 public LLUUID groupID = new LLUUID(); //Unemplemented
48 public int groupPrims = 0;
49 public int otherPrims = 0;
50 public int ownerPrims = 0;
51 public int selectedPrims = 0;
52 public int simwidePrims = 0;
53 public int simwideArea = 0;
54 public int salePrice = 0; //Unemeplemented. Parcels price.
55 public Parcel.ParcelStatus landStatus = Parcel.ParcelStatus.Leased;
56
57 public uint landFlags = (uint) Parcel.ParcelFlags.AllowFly | (uint) Parcel.ParcelFlags.AllowLandmark |
58 (uint) Parcel.ParcelFlags.AllowAllObjectEntry |
59 (uint) Parcel.ParcelFlags.AllowDeedToGroup | (uint) Parcel.ParcelFlags.AllowTerraform |
60 (uint) Parcel.ParcelFlags.CreateObjects | (uint) Parcel.ParcelFlags.AllowOtherScripts |
61 (uint) Parcel.ParcelFlags.SoundLocal;
62
63 public byte landingType = 0;
64 public byte mediaAutoScale = 0;
65 public LLUUID mediaID = LLUUID.Zero;
66 public int localID = 0;
67 public LLUUID globalID = new LLUUID();
68
69 public string mediaURL = "";
70 public string musicURL = "";
71 public float passHours = 0;
72 public int passPrice = 0;
73 public LLUUID snapshotID = LLUUID.Zero;
74 public LLVector3 userLocation = new LLVector3();
75 public LLVector3 userLookAt = new LLVector3();
76
77 public LandData()
78 {
79 globalID = LLUUID.Random();
80 }
81
82 public LandData Copy()
83 {
84 LandData landData = new LandData();
85
86 landData.AABBMax = AABBMax;
87 landData.AABBMin = AABBMin;
88 landData.area = area;
89 landData.auctionID = auctionID;
90 landData.authBuyerID = authBuyerID;
91 landData.category = category;
92 landData.claimDate = claimDate;
93 landData.claimPrice = claimPrice;
94 landData.globalID = globalID;
95 landData.groupID = groupID;
96 landData.groupPrims = groupPrims;
97 landData.otherPrims = otherPrims;
98 landData.ownerPrims = ownerPrims;
99 landData.selectedPrims = selectedPrims;
100 landData.isGroupOwned = isGroupOwned;
101 landData.localID = localID;
102 landData.landingType = landingType;
103 landData.mediaAutoScale = mediaAutoScale;
104 landData.mediaID = mediaID;
105 landData.mediaURL = mediaURL;
106 landData.musicURL = musicURL;
107 landData.ownerID = ownerID;
108 landData.landBitmapByteArray = (byte[]) landBitmapByteArray.Clone();
109 landData.landDesc = landDesc;
110 landData.landFlags = landFlags;
111 landData.landName = landName;
112 landData.landStatus = landStatus;
113 landData.passHours = passHours;
114 landData.passPrice = passPrice;
115 landData.salePrice = salePrice;
116 landData.snapshotID = snapshotID;
117 landData.userLocation = userLocation;
118 landData.userLookAt = userLookAt;
119
120 return landData;
121 }
122 }
123} \ No newline at end of file