diff options
as per the "Filesystem cleanup for OpenSim repository" mailing list thread. Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace.
Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
Diffstat (limited to 'OpenSim/Framework/General/LandData.cs')
-rw-r--r-- | OpenSim/Framework/General/LandData.cs | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/OpenSim/Framework/General/LandData.cs b/OpenSim/Framework/General/LandData.cs new file mode 100644 index 0000000..414b613 --- /dev/null +++ b/OpenSim/Framework/General/LandData.cs | |||
@@ -0,0 +1,120 @@ | |||
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 | */ | ||
28 | using libsecondlife; | ||
29 | |||
30 | namespace OpenSim.Framework | ||
31 | { | ||
32 | |||
33 | public class LandData | ||
34 | { | ||
35 | public byte[] landBitmapByteArray = new byte[512]; | ||
36 | public string landName = "Your Parcel"; | ||
37 | public string landDesc = ""; | ||
38 | public LLUUID ownerID = new LLUUID(); | ||
39 | public bool isGroupOwned = false; | ||
40 | public LLVector3 AABBMin = new LLVector3(); | ||
41 | public LLVector3 AABBMax = new LLVector3(); | ||
42 | public int area = 0; | ||
43 | public uint auctionID = 0; //Unemplemented. If set to 0, not being auctioned | ||
44 | public LLUUID authBuyerID = new LLUUID(); //Unemplemented. Authorized Buyer's UUID | ||
45 | public Parcel.ParcelCategory category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category | ||
46 | public int claimDate = 0; //Unemplemented | ||
47 | public int claimPrice = 0; //Unemplemented | ||
48 | public LLUUID groupID = new LLUUID(); //Unemplemented | ||
49 | public int groupPrims = 0; | ||
50 | public int otherPrims = 0; | ||
51 | public int ownerPrims = 0; | ||
52 | public int selectedPrims = 0; | ||
53 | public int simwidePrims = 0; | ||
54 | public int simwideArea = 0; | ||
55 | public int salePrice = 0; //Unemeplemented. Parcels price. | ||
56 | public Parcel.ParcelStatus landStatus = Parcel.ParcelStatus.Leased; | ||
57 | public uint landFlags = (uint)Parcel.ParcelFlags.AllowFly | (uint)Parcel.ParcelFlags.AllowLandmark | (uint)Parcel.ParcelFlags.AllowAllObjectEntry | (uint)Parcel.ParcelFlags.AllowDeedToGroup | (uint)Parcel.ParcelFlags.AllowTerraform | (uint)Parcel.ParcelFlags.CreateObjects | (uint)Parcel.ParcelFlags.AllowOtherScripts | (uint)Parcel.ParcelFlags.SoundLocal ; | ||
58 | public byte landingType = 0; | ||
59 | public byte mediaAutoScale = 0; | ||
60 | public LLUUID mediaID = LLUUID.Zero; | ||
61 | public int localID = 0; | ||
62 | public LLUUID globalID = new LLUUID(); | ||
63 | |||
64 | public string mediaURL = ""; | ||
65 | public string musicURL = ""; | ||
66 | public float passHours = 0; | ||
67 | public int passPrice = 0; | ||
68 | public LLUUID snapshotID = LLUUID.Zero; | ||
69 | public LLVector3 userLocation = new LLVector3(); | ||
70 | public LLVector3 userLookAt = new LLVector3(); | ||
71 | |||
72 | public LandData() | ||
73 | { | ||
74 | globalID = LLUUID.Random(); | ||
75 | } | ||
76 | |||
77 | public LandData Copy() | ||
78 | { | ||
79 | LandData landData = new LandData(); | ||
80 | |||
81 | landData.AABBMax = this.AABBMax; | ||
82 | landData.AABBMin = this.AABBMin; | ||
83 | landData.area = this.area; | ||
84 | landData.auctionID = this.auctionID; | ||
85 | landData.authBuyerID = this.authBuyerID; | ||
86 | landData.category = this.category; | ||
87 | landData.claimDate = this.claimDate; | ||
88 | landData.claimPrice = this.claimPrice; | ||
89 | landData.globalID = this.globalID; | ||
90 | landData.groupID = this.groupID; | ||
91 | landData.groupPrims = this.groupPrims; | ||
92 | landData.otherPrims = this.otherPrims; | ||
93 | landData.ownerPrims = this.ownerPrims; | ||
94 | landData.selectedPrims = this.selectedPrims; | ||
95 | landData.isGroupOwned = this.isGroupOwned; | ||
96 | landData.localID = this.localID; | ||
97 | landData.landingType = this.landingType; | ||
98 | landData.mediaAutoScale = this.mediaAutoScale; | ||
99 | landData.mediaID = this.mediaID; | ||
100 | landData.mediaURL = this.mediaURL; | ||
101 | landData.musicURL = this.musicURL; | ||
102 | landData.ownerID = this.ownerID; | ||
103 | landData.landBitmapByteArray = (byte[])this.landBitmapByteArray.Clone(); | ||
104 | landData.landDesc = this.landDesc; | ||
105 | landData.landFlags = this.landFlags; | ||
106 | landData.landName = this.landName; | ||
107 | landData.landStatus = this.landStatus; | ||
108 | landData.passHours = this.passHours; | ||
109 | landData.passPrice = this.passPrice; | ||
110 | landData.salePrice = this.salePrice; | ||
111 | landData.snapshotID = this.snapshotID; | ||
112 | landData.userLocation = this.userLocation; | ||
113 | landData.userLookAt = this.userLookAt; | ||
114 | |||
115 | return landData; | ||
116 | |||
117 | } | ||
118 | } | ||
119 | |||
120 | } | ||