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