aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-05 17:09:46 +0000
committerJustin Clarke Casey2009-05-05 17:09:46 +0000
commit78425e392b81f0124fe6da0366e6a189ea3b7c07 (patch)
tree3d0f5c838cf44076fbca67d2742b86542304e71b /OpenSim
parent* If an item creator id contains an iar loaded name, create a temporary profi... (diff)
downloadopensim-SC_OLD-78425e392b81f0124fe6da0366e6a189ea3b7c07.zip
opensim-SC_OLD-78425e392b81f0124fe6da0366e6a189ea3b7c07.tar.gz
opensim-SC_OLD-78425e392b81f0124fe6da0366e6a189ea3b7c07.tar.bz2
opensim-SC_OLD-78425e392b81f0124fe6da0366e6a189ea3b7c07.tar.xz
* Change automatic properties back to manual get/set
* Automatic properties are only supported after .Net 2.0, causing these to fail when building via nant on Windows (and probably visual c# 2005 too) * Hopefully these can be used once building support in Visual C# 2005 is dropped.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/InventoryItemBase.cs242
1 files changed, 220 insertions, 22 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index f874de1..d14ce23 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -38,17 +38,53 @@ namespace OpenSim.Framework
38 /// <value> 38 /// <value>
39 /// The inventory type of the item. This is slightly different from the asset type in some situations. 39 /// The inventory type of the item. This is slightly different from the asset type in some situations.
40 /// </value> 40 /// </value>
41 public int InvType { get; set; } 41 public int InvType
42 {
43 get
44 {
45 return m_invType;
46 }
47
48 set
49 {
50 m_invType = value;
51 }
52 }
53 protected int m_invType;
42 54
43 /// <value> 55 /// <value>
44 /// The folder this item is contained in 56 /// The folder this item is contained in
45 /// </value> 57 /// </value>
46 public UUID Folder { get; set; } 58 public UUID Folder
59 {
60 get
61 {
62 return m_folder;
63 }
64
65 set
66 {
67 m_folder = value;
68 }
69 }
70 protected UUID m_folder;
47 71
48 /// <value> 72 /// <value>
49 /// The creator of this item 73 /// The creator of this item
50 /// </value> 74 /// </value>
51 public string CreatorId { get; set; } 75 public string CreatorId
76 {
77 get
78 {
79 return m_creatorId;
80 }
81
82 set
83 {
84 m_creatorId = value;
85 }
86 }
87 protected string m_creatorId;
52 88
53 /// <value> 89 /// <value>
54 /// The creator of this item expressed as a UUID. Database plugins don't need to set this, it will be set by 90 /// The creator of this item expressed as a UUID. Database plugins don't need to set this, it will be set by
@@ -76,78 +112,240 @@ namespace OpenSim.Framework
76 /// <value> 112 /// <value>
77 /// The description of the inventory item (must be less than 64 characters) 113 /// The description of the inventory item (must be less than 64 characters)
78 /// </value> 114 /// </value>
79 public string Description { get; set; } 115 public string Description
116 {
117 get
118 {
119 return m_description;
120 }
121
122 set
123 {
124 m_description = value;
125 }
126 }
127 protected string m_description = String.Empty;
80 128
81 /// <value> 129 /// <value>
82 /// 130 ///
83 /// </value> 131 /// </value>
84 public uint NextPermissions { get; set; } 132 public uint NextPermissions
133 {
134 get
135 {
136 return m_nextPermissions;
137 }
138
139 set
140 {
141 m_nextPermissions = value;
142 }
143 }
144 protected uint m_nextPermissions;
85 145
86 /// <value> 146 /// <value>
87 /// A mask containing permissions for the current owner (cannot be enforced) 147 /// A mask containing permissions for the current owner (cannot be enforced)
88 /// </value> 148 /// </value>
89 public uint CurrentPermissions { get; set; } 149 public uint CurrentPermissions
150 {
151 get
152 {
153 return m_currentPermissions;
154 }
155
156 set
157 {
158 m_currentPermissions = value;
159 }
160 }
161 protected uint m_currentPermissions;
90 162
91 /// <value> 163 /// <value>
92 /// 164 ///
93 /// </value> 165 /// </value>
94 public uint BasePermissions { get; set; } 166 public uint BasePermissions
167 {
168 get
169 {
170 return m_basePermissions;
171 }
172
173 set
174 {
175 m_basePermissions = value;
176 }
177 }
178 protected uint m_basePermissions;
95 179
96 /// <value> 180 /// <value>
97 /// 181 ///
98 /// </value> 182 /// </value>
99 public uint EveryOnePermissions { get; set; } 183 public uint EveryOnePermissions
184 {
185 get
186 {
187 return m_everyonePermissions;
188 }
189
190 set
191 {
192 m_everyonePermissions = value;
193 }
194 }
195 protected uint m_everyonePermissions;
100 196
101 /// <value> 197 /// <value>
102 /// 198 ///
103 /// </value> 199 /// </value>
104 public uint GroupPermissions { get; set; } 200 public uint GroupPermissions
201 {
202 get
203 {
204 return m_groupPermissions;
205 }
206
207 set
208 {
209 m_groupPermissions = value;
210 }
211 }
212 protected uint m_groupPermissions;
105 213
106 /// <value> 214 /// <value>
107 /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) 215 /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc)
108 /// </value> 216 /// </value>
109 public int AssetType { get; set; } 217 public int AssetType
218 {
219 get
220 {
221 return m_assetType;
222 }
223
224 set
225 {
226 m_assetType = value;
227 }
228 }
229 protected int m_assetType;
110 230
111 /// <value> 231 /// <value>
112 /// The UUID of the associated asset on the asset server 232 /// The UUID of the associated asset on the asset server
113 /// </value> 233 /// </value>
114 public UUID AssetID { get; set; } 234 public UUID AssetID
235 {
236 get
237 {
238 return m_assetID;
239 }
240
241 set
242 {
243 m_assetID = value;
244 }
245 }
246 protected UUID m_assetID;
115 247
116 /// <value> 248 /// <value>
117 /// 249 ///
118 /// </value> 250 /// </value>
119 public UUID GroupID { get; set; } 251 public UUID GroupID
252 {
253 get
254 {
255 return m_groupID;
256 }
257
258 set
259 {
260 m_groupID = value;
261 }
262 }
263 protected UUID m_groupID;
120 264
121 /// <value> 265 /// <value>
122 /// 266 ///
123 /// </value> 267 /// </value>
124 public bool GroupOwned { get; set; } 268 public bool GroupOwned
269 {
270 get
271 {
272 return m_groupOwned;
273 }
274
275 set
276 {
277 m_groupOwned = value;
278 }
279 }
280 protected bool m_groupOwned;
125 281
126 /// <value> 282 /// <value>
127 /// 283 ///
128 /// </value> 284 /// </value>
129 public int SalePrice { get; set; } 285 public int SalePrice
286 {
287 get
288 {
289 return m_salePrice;
290 }
291
292 set
293 {
294 m_salePrice = value;
295 }
296 }
297 protected int m_salePrice;
130 298
131 /// <value> 299 /// <value>
132 /// 300 ///
133 /// </value> 301 /// </value>
134 public byte SaleType { get; set; } 302 public byte SaleType
303 {
304 get
305 {
306 return m_saleType;
307 }
308
309 set
310 {
311 m_saleType = value;
312 }
313 }
314 protected byte m_saleType;
135 315
136 /// <value> 316 /// <value>
137 /// 317 ///
138 /// </value> 318 /// </value>
139 public uint Flags { get; set; } 319 public uint Flags
320 {
321 get
322 {
323 return m_flags;
324 }
325
326 set
327 {
328 m_flags = value;
329 }
330 }
331 protected uint m_flags;
140 332
141 /// <value> 333 /// <value>
142 /// 334 ///
143 /// </value> 335 /// </value>
144 public int CreationDate { get; set; } 336 public int CreationDate
145 337 {
146 public InventoryItemBase() 338 get
147 { 339 {
148 Description = String.Empty; 340 return m_creationDate;
149 CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 341 }
342
343 set
344 {
345 m_creationDate = value;
346 }
150 } 347 }
348 protected int m_creationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
151 349
152 public object Clone() 350 public object Clone()
153 { 351 {