aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/InventoryItemBase.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-04 15:38:36 +0000
committerJustin Clarke Casey2009-05-04 15:38:36 +0000
commit257fc5515ac9cb36032c2f44f040c3620ed2f328 (patch)
tree167d99d28167e6ab36a96bccf22fbef0b9f0cce1 /OpenSim/Framework/InventoryItemBase.cs
parentPrebuild changes to allow the console to reference the http server (diff)
downloadopensim-SC-257fc5515ac9cb36032c2f44f040c3620ed2f328.zip
opensim-SC-257fc5515ac9cb36032c2f44f040c3620ed2f328.tar.gz
opensim-SC-257fc5515ac9cb36032c2f44f040c3620ed2f328.tar.bz2
opensim-SC-257fc5515ac9cb36032c2f44f040c3620ed2f328.tar.xz
* minor: remove some mono compiler warnings, minor cleanup
Diffstat (limited to 'OpenSim/Framework/InventoryItemBase.cs')
-rw-r--r--OpenSim/Framework/InventoryItemBase.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index ce3dc63..b14ce7f 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -33,7 +33,7 @@ namespace OpenSim.Framework
33 /// <summary> 33 /// <summary>
34 /// Inventory Item - contains all the properties associated with an individual inventory piece. 34 /// Inventory Item - contains all the properties associated with an individual inventory piece.
35 /// </summary> 35 /// </summary>
36 public class InventoryItemBase : InventoryNodeBase 36 public class InventoryItemBase : InventoryNodeBase, ICloneable
37 { 37 {
38 /// <summary> 38 /// <summary>
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.
@@ -143,5 +143,16 @@ namespace OpenSim.Framework
143 { 143 {
144 CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 144 CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
145 } 145 }
146
147 public object Clone()
148 {
149 InventoryItemBase clone = new InventoryItemBase();
150 clone.AssetID = AssetID;
151 clone.AssetType = AssetType;
152 clone.BasePermissions = BasePermissions;
153 clone.CreationDate = CreationDate;
154 clone.CreatorId = CreatorId;
155
156 }
146 } 157 }
147} 158}