From 375163a6fece8b3a57c7555246abe8338223a599 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 29 Apr 2008 14:04:55 +0000 Subject: * Spring cleaning. * Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned. --- OpenSim/Framework/InventoryItemBase.cs | 197 +++++++++++++-------------------- 1 file changed, 79 insertions(+), 118 deletions(-) (limited to 'OpenSim/Framework/InventoryItemBase.cs') diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index ccb8163..3d75a8a 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs @@ -35,11 +35,6 @@ namespace OpenSim.Framework public class InventoryItemBase { /// - /// A UUID containing the ID for the inventory item itself - /// - private LLUUID _id; - - /// /// The UUID of the associated asset on the asset server /// private LLUUID _assetID; @@ -50,170 +45,136 @@ namespace OpenSim.Framework private int _assetType; /// - /// The type of inventory item. (Can be slightly different to the asset type + /// /// - private int _invType; + private uint _basePermissions; /// - /// The folder this item is contained in + /// The creator of this item /// - private LLUUID _folder; + private LLUUID _creator; /// - /// The owner of this inventory item + /// A mask containing permissions for the current owner (cannot be enforced) /// - private LLUUID _owner; + private uint _currentPermissions; /// - /// The creator of this item + /// The description of the inventory item (must be less than 64 characters) /// - private LLUUID _creator; + private string _description; /// - /// The name of the inventory item (must be less than 64 characters) + /// /// - private string _name; + private uint _everyOnePermissions; /// - /// The description of the inventory item (must be less than 64 characters) + /// The folder this item is contained in /// - private string _description; + private LLUUID _folder; /// - /// A mask containing the permissions for the next owner (cannot be enforced) + /// A UUID containing the ID for the inventory item itself /// - private uint _nextPermissions; + private LLUUID _id; /// - /// A mask containing permissions for the current owner (cannot be enforced) + /// The type of inventory item. (Can be slightly different to the asset type /// - private uint _currentPermissions; + private int _invType; /// - /// + /// The name of the inventory item (must be less than 64 characters) /// - private uint _basePermissions; + private string _name; /// - /// + /// A mask containing the permissions for the next owner (cannot be enforced) /// - private uint _everyOnePermissions; - - public LLUUID ID { - get { - return _id; - } - set { - _id = value; - } + private uint _nextPermissions; + + /// + /// The owner of this inventory item + /// + private LLUUID _owner; + + public LLUUID ID + { + get { return _id; } + set { _id = value; } } - public int InvType { - get { - return _invType; - } - set { - _invType = value; - } + public int InvType + { + get { return _invType; } + set { _invType = value; } } - public LLUUID Folder { - get { - return _folder; - } - set { - _folder = value; - } + public LLUUID Folder + { + get { return _folder; } + set { _folder = value; } } - public LLUUID Owner { - get { - return _owner; - } - set { - _owner = value; - } + public LLUUID Owner + { + get { return _owner; } + set { _owner = value; } } - public LLUUID Creator { - get { - return _creator; - } - set { - _creator = value; - } + public LLUUID Creator + { + get { return _creator; } + set { _creator = value; } } - public string Name { - get { - return _name; - } - set { - _name = value; - } + public string Name + { + get { return _name; } + set { _name = value; } } - public string Description { - get { - return _description; - } - set { - _description = value; - } + public string Description + { + get { return _description; } + set { _description = value; } } - public uint NextPermissions { - get { - return _nextPermissions; - } - set { - _nextPermissions = value; - } + public uint NextPermissions + { + get { return _nextPermissions; } + set { _nextPermissions = value; } } - public uint CurrentPermissions { - get { - return _currentPermissions; - } - set { - _currentPermissions = value; - } + public uint CurrentPermissions + { + get { return _currentPermissions; } + set { _currentPermissions = value; } } - public uint BasePermissions { - get { - return _basePermissions; - } - set { - _basePermissions = value; - } + public uint BasePermissions + { + get { return _basePermissions; } + set { _basePermissions = value; } } - public uint EveryOnePermissions { - get { - return _everyOnePermissions; - } - set { - _everyOnePermissions = value; - } + public uint EveryOnePermissions + { + get { return _everyOnePermissions; } + set { _everyOnePermissions = value; } } - public int AssetType { - get { - return _assetType; - } - set { - _assetType = value; - } + public int AssetType + { + get { return _assetType; } + set { _assetType = value; } } - public LLUUID AssetID { - get { - return _assetID; - } - set { - _assetID = value; - } + public LLUUID AssetID + { + get { return _assetID; } + set { _assetID = value; } } } -} +} \ No newline at end of file -- cgit v1.1