From a61cbab799886e43749bc4d0803e579fec000f4c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 4 May 2009 16:15:30 +0000
Subject: * Insert profile references for creators for items saved into iars
---
OpenSim/Framework/InventoryItemBase.cs | 75 +++++++++++++++-------------------
1 file changed, 32 insertions(+), 43 deletions(-)
(limited to 'OpenSim/Framework/InventoryItemBase.cs')
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index b14ce7f..29142af 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -35,14 +35,14 @@ namespace OpenSim.Framework
///
public class InventoryItemBase : InventoryNodeBase, ICloneable
{
- ///
+ ///
/// The inventory type of the item. This is slightly different from the asset type in some situations.
- ///
+ ///
public int InvType;
- ///
+ ///
/// The folder this item is contained in
- ///
+ ///
public UUID Folder;
///
@@ -69,9 +69,9 @@ namespace OpenSim.Framework
///
public UUID CreatorIdAsUuid { get; private set; }
- ///
+ ///
/// The description of the inventory item (must be less than 64 characters)
- ///
+ ///
public string Description = String.Empty;
///
@@ -79,80 +79,69 @@ namespace OpenSim.Framework
///
public uint NextPermissions;
- ///
+ ///
/// A mask containing permissions for the current owner (cannot be enforced)
- ///
+ ///
public uint CurrentPermissions;
- ///
+ ///
///
- ///
+ ///
public uint BasePermissions;
- ///
+ ///
///
- ///
+ ///
public uint EveryOnePermissions;
- ///
+ ///
///
- ///
+ ///
public uint GroupPermissions;
- ///
+ ///
/// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc)
- ///
+ ///
public int AssetType;
- ///
+ ///
/// The UUID of the associated asset on the asset server
- ///
+ ///
public UUID AssetID;
- ///
+ ///
///
- ///
+ ///
public UUID GroupID;
- ///
+ ///
///
- ///
+ ///
public bool GroupOwned;
- ///
+ ///
///
- ///
+ ///
public int SalePrice;
- ///
+ ///
///
- ///
+ ///
public byte SaleType;
- ///
+ ///
///
- ///
+ ///
public uint Flags;
- ///
+ ///
///
- ///
- public int CreationDate;
-
- public InventoryItemBase()
- {
- CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
- }
+ ///
+ public int 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;
-
+ return MemberwiseClone();
}
}
}
--
cgit v1.1