diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Framework/General/LandData.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to 'OpenSim/Framework/General/LandData.cs')
-rw-r--r-- | OpenSim/Framework/General/LandData.cs | 169 |
1 files changed, 86 insertions, 83 deletions
diff --git a/OpenSim/Framework/General/LandData.cs b/OpenSim/Framework/General/LandData.cs index 414b613..cab71a9 100644 --- a/OpenSim/Framework/General/LandData.cs +++ b/OpenSim/Framework/General/LandData.cs | |||
@@ -29,92 +29,95 @@ using libsecondlife; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework | 30 | namespace OpenSim.Framework |
31 | { | 31 | { |
32 | 32 | public class LandData | |
33 | public class LandData | 33 | { |
34 | { | 34 | public byte[] landBitmapByteArray = new byte[512]; |
35 | public byte[] landBitmapByteArray = new byte[512]; | 35 | public string landName = "Your Parcel"; |
36 | public string landName = "Your Parcel"; | 36 | public string landDesc = ""; |
37 | public string landDesc = ""; | 37 | public LLUUID ownerID = new LLUUID(); |
38 | public LLUUID ownerID = new LLUUID(); | 38 | public bool isGroupOwned = false; |
39 | public bool isGroupOwned = false; | 39 | public LLVector3 AABBMin = new LLVector3(); |
40 | public LLVector3 AABBMin = new LLVector3(); | 40 | public LLVector3 AABBMax = new LLVector3(); |
41 | public LLVector3 AABBMax = new LLVector3(); | 41 | public int area = 0; |
42 | public int area = 0; | 42 | public uint auctionID = 0; //Unemplemented. If set to 0, not being auctioned |
43 | 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 LLUUID authBuyerID = new LLUUID(); //Unemplemented. Authorized Buyer's UUID | 44 | public Parcel.ParcelCategory category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category |
45 | public Parcel.ParcelCategory category = new Parcel.ParcelCategory(); //Unemplemented. Parcel's chosen category | 45 | public int claimDate = 0; //Unemplemented |
46 | public int claimDate = 0; //Unemplemented | 46 | public int claimPrice = 0; //Unemplemented |
47 | public int claimPrice = 0; //Unemplemented | 47 | public LLUUID groupID = new LLUUID(); //Unemplemented |
48 | public LLUUID groupID = new LLUUID(); //Unemplemented | 48 | public int groupPrims = 0; |
49 | public int groupPrims = 0; | 49 | public int otherPrims = 0; |
50 | public int otherPrims = 0; | 50 | public int ownerPrims = 0; |
51 | public int ownerPrims = 0; | 51 | public int selectedPrims = 0; |
52 | public int selectedPrims = 0; | 52 | public int simwidePrims = 0; |
53 | public int simwidePrims = 0; | 53 | public int simwideArea = 0; |
54 | public int simwideArea = 0; | 54 | public int salePrice = 0; //Unemeplemented. Parcels price. |
55 | public int salePrice = 0; //Unemeplemented. Parcels price. | 55 | public Parcel.ParcelStatus landStatus = Parcel.ParcelStatus.Leased; |
56 | public Parcel.ParcelStatus landStatus = Parcel.ParcelStatus.Leased; | 56 | |
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 ; | 57 | public uint landFlags = (uint) Parcel.ParcelFlags.AllowFly | (uint) Parcel.ParcelFlags.AllowLandmark | |
58 | public byte landingType = 0; | 58 | (uint) Parcel.ParcelFlags.AllowAllObjectEntry | |
59 | public byte mediaAutoScale = 0; | 59 | (uint) Parcel.ParcelFlags.AllowDeedToGroup | (uint) Parcel.ParcelFlags.AllowTerraform | |
60 | public LLUUID mediaID = LLUUID.Zero; | 60 | (uint) Parcel.ParcelFlags.CreateObjects | (uint) Parcel.ParcelFlags.AllowOtherScripts | |
61 | public int localID = 0; | 61 | (uint) Parcel.ParcelFlags.SoundLocal; |
62 | public LLUUID globalID = new LLUUID(); | 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(); | ||
63 | 68 | ||
64 | public string mediaURL = ""; | 69 | public string mediaURL = ""; |
65 | public string musicURL = ""; | 70 | public string musicURL = ""; |
66 | public float passHours = 0; | 71 | public float passHours = 0; |
67 | public int passPrice = 0; | 72 | public int passPrice = 0; |
68 | public LLUUID snapshotID = LLUUID.Zero; | 73 | public LLUUID snapshotID = LLUUID.Zero; |
69 | public LLVector3 userLocation = new LLVector3(); | 74 | public LLVector3 userLocation = new LLVector3(); |
70 | public LLVector3 userLookAt = new LLVector3(); | 75 | public LLVector3 userLookAt = new LLVector3(); |
71 | 76 | ||
72 | public LandData() | 77 | public LandData() |
73 | { | 78 | { |
74 | globalID = LLUUID.Random(); | 79 | globalID = LLUUID.Random(); |
75 | } | 80 | } |
76 | 81 | ||
77 | public LandData Copy() | 82 | public LandData Copy() |
78 | { | 83 | { |
79 | LandData landData = new LandData(); | 84 | LandData landData = new LandData(); |
80 | 85 | ||
81 | landData.AABBMax = this.AABBMax; | 86 | landData.AABBMax = AABBMax; |
82 | landData.AABBMin = this.AABBMin; | 87 | landData.AABBMin = AABBMin; |
83 | landData.area = this.area; | 88 | landData.area = area; |
84 | landData.auctionID = this.auctionID; | 89 | landData.auctionID = auctionID; |
85 | landData.authBuyerID = this.authBuyerID; | 90 | landData.authBuyerID = authBuyerID; |
86 | landData.category = this.category; | 91 | landData.category = category; |
87 | landData.claimDate = this.claimDate; | 92 | landData.claimDate = claimDate; |
88 | landData.claimPrice = this.claimPrice; | 93 | landData.claimPrice = claimPrice; |
89 | landData.globalID = this.globalID; | 94 | landData.globalID = globalID; |
90 | landData.groupID = this.groupID; | 95 | landData.groupID = groupID; |
91 | landData.groupPrims = this.groupPrims; | 96 | landData.groupPrims = groupPrims; |
92 | landData.otherPrims = this.otherPrims; | 97 | landData.otherPrims = otherPrims; |
93 | landData.ownerPrims = this.ownerPrims; | 98 | landData.ownerPrims = ownerPrims; |
94 | landData.selectedPrims = this.selectedPrims; | 99 | landData.selectedPrims = selectedPrims; |
95 | landData.isGroupOwned = this.isGroupOwned; | 100 | landData.isGroupOwned = isGroupOwned; |
96 | landData.localID = this.localID; | 101 | landData.localID = localID; |
97 | landData.landingType = this.landingType; | 102 | landData.landingType = landingType; |
98 | landData.mediaAutoScale = this.mediaAutoScale; | 103 | landData.mediaAutoScale = mediaAutoScale; |
99 | landData.mediaID = this.mediaID; | 104 | landData.mediaID = mediaID; |
100 | landData.mediaURL = this.mediaURL; | 105 | landData.mediaURL = mediaURL; |
101 | landData.musicURL = this.musicURL; | 106 | landData.musicURL = musicURL; |
102 | landData.ownerID = this.ownerID; | 107 | landData.ownerID = ownerID; |
103 | landData.landBitmapByteArray = (byte[])this.landBitmapByteArray.Clone(); | 108 | landData.landBitmapByteArray = (byte[]) landBitmapByteArray.Clone(); |
104 | landData.landDesc = this.landDesc; | 109 | landData.landDesc = landDesc; |
105 | landData.landFlags = this.landFlags; | 110 | landData.landFlags = landFlags; |
106 | landData.landName = this.landName; | 111 | landData.landName = landName; |
107 | landData.landStatus = this.landStatus; | 112 | landData.landStatus = landStatus; |
108 | landData.passHours = this.passHours; | 113 | landData.passHours = passHours; |
109 | landData.passPrice = this.passPrice; | 114 | landData.passPrice = passPrice; |
110 | landData.salePrice = this.salePrice; | 115 | landData.salePrice = salePrice; |
111 | landData.snapshotID = this.snapshotID; | 116 | landData.snapshotID = snapshotID; |
112 | landData.userLocation = this.userLocation; | 117 | landData.userLocation = userLocation; |
113 | landData.userLookAt = this.userLookAt; | 118 | landData.userLookAt = userLookAt; |
114 | 119 | ||
115 | return landData; | 120 | return landData; |
116 | |||
117 | } | ||
118 | } | 121 | } |
119 | 122 | } | |
120 | } | 123 | } \ No newline at end of file |