aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/InventoryItemBase.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-05 15:23:44 +0000
committerJustin Clarke Casey2009-05-05 15:23:44 +0000
commitb6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9 (patch)
tree50da8d95171d62f378c07107a6c77adcd98cd116 /OpenSim/Framework/InventoryItemBase.cs
parentRemove a couple other bin directories. (diff)
downloadopensim-SC-b6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9.zip
opensim-SC-b6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9.tar.gz
opensim-SC-b6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9.tar.bz2
opensim-SC-b6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9.tar.xz
* Fix http://opensimulator.org/mantis/view.php?id=3585
* Make public variables properties instead, as there is a difference
Diffstat (limited to 'OpenSim/Framework/InventoryItemBase.cs')
-rw-r--r--OpenSim/Framework/InventoryItemBase.cs38
1 files changed, 22 insertions, 16 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index 74b504e..61771ab 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -38,12 +38,12 @@ 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; 41 public int InvType { get; set; }
42 42
43 /// <value> 43 /// <value>
44 /// The folder this item is contained in 44 /// The folder this item is contained in
45 /// </value> 45 /// </value>
46 public UUID Folder; 46 public UUID Folder { get; set; }
47 47
48 /// <value> 48 /// <value>
49 /// The creator of this item 49 /// The creator of this item
@@ -84,73 +84,79 @@ namespace OpenSim.Framework
84 /// <value> 84 /// <value>
85 /// The description of the inventory item (must be less than 64 characters) 85 /// The description of the inventory item (must be less than 64 characters)
86 /// </value> 86 /// </value>
87 public string Description = String.Empty; 87 public string Description { get; set; }
88 88
89 /// <value> 89 /// <value>
90 /// 90 ///
91 /// </value> 91 /// </value>
92 public uint NextPermissions; 92 public uint NextPermissions { get; set; }
93 93
94 /// <value> 94 /// <value>
95 /// A mask containing permissions for the current owner (cannot be enforced) 95 /// A mask containing permissions for the current owner (cannot be enforced)
96 /// </value> 96 /// </value>
97 public uint CurrentPermissions; 97 public uint CurrentPermissions { get; set; }
98 98
99 /// <value> 99 /// <value>
100 /// 100 ///
101 /// </value> 101 /// </value>
102 public uint BasePermissions; 102 public uint BasePermissions { get; set; }
103 103
104 /// <value> 104 /// <value>
105 /// 105 ///
106 /// </value> 106 /// </value>
107 public uint EveryOnePermissions; 107 public uint EveryOnePermissions { get; set; }
108 108
109 /// <value> 109 /// <value>
110 /// 110 ///
111 /// </value> 111 /// </value>
112 public uint GroupPermissions; 112 public uint GroupPermissions { get; set; }
113 113
114 /// <value> 114 /// <value>
115 /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) 115 /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc)
116 /// </value> 116 /// </value>
117 public int AssetType; 117 public int AssetType { get; set; }
118 118
119 /// <value> 119 /// <value>
120 /// The UUID of the associated asset on the asset server 120 /// The UUID of the associated asset on the asset server
121 /// </value> 121 /// </value>
122 public UUID AssetID; 122 public UUID AssetID { get; set; }
123 123
124 /// <value> 124 /// <value>
125 /// 125 ///
126 /// </value> 126 /// </value>
127 public UUID GroupID; 127 public UUID GroupID { get; set; }
128 128
129 /// <value> 129 /// <value>
130 /// 130 ///
131 /// </value> 131 /// </value>
132 public bool GroupOwned; 132 public bool GroupOwned { get; set; }
133 133
134 /// <value> 134 /// <value>
135 /// 135 ///
136 /// </value> 136 /// </value>
137 public int SalePrice; 137 public int SalePrice { get; set; }
138 138
139 /// <value> 139 /// <value>
140 /// 140 ///
141 /// </value> 141 /// </value>
142 public byte SaleType; 142 public byte SaleType { get; set; }
143 143
144 /// <value> 144 /// <value>
145 /// 145 ///
146 /// </value> 146 /// </value>
147 public uint Flags; 147 public uint Flags { get; set; }
148 148
149 /// <value> 149 /// <value>
150 /// 150 ///
151 /// </value> 151 /// </value>
152 public int CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 152 public int CreationDate { get; set; }
153 153
154 public InventoryItemBase()
155 {
156 Description = String.Empty;
157 CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
158 }
159
154 public object Clone() 160 public object Clone()
155 { 161 {
156 return MemberwiseClone(); 162 return MemberwiseClone();