From 257fc5515ac9cb36032c2f44f040c3620ed2f328 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 4 May 2009 15:38:36 +0000 Subject: * minor: remove some mono compiler warnings, minor cleanup --- OpenSim/Framework/InventoryItemBase.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/InventoryItemBase.cs') 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 /// /// Inventory Item - contains all the properties associated with an individual inventory piece. /// - public class InventoryItemBase : InventoryNodeBase + public class InventoryItemBase : InventoryNodeBase, ICloneable { /// /// The inventory type of the item. This is slightly different from the asset type in some situations. @@ -143,5 +143,16 @@ namespace OpenSim.Framework { CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; } + + public object Clone() + { + InventoryItemBase clone = new InventoryItemBase(); + clone.AssetID = AssetID; + clone.AssetType = AssetType; + clone.BasePermissions = BasePermissions; + clone.CreationDate = CreationDate; + clone.CreatorId = CreatorId; + + } } } -- cgit v1.1