refactor of InventoryCollection for good measure

0.6.0-stable
Sean Dague 2008-04-07 23:34:41 +00:00
parent 5ee75998ce
commit a02b3fe015
1 changed files with 34 additions and 7 deletions

View File

@ -34,20 +34,47 @@ namespace OpenSim.Framework
{
public class InventoryCollection
{
public List<InventoryFolderBase> Folders;
public List<InventoryItemBase> AllItems;
public LLUUID UserID;
public List<InventoryFolderBase> _folders;
public List<InventoryItemBase> _allItems;
public LLUUID _userID;
public List<InventoryFolderBase> Folders {
get {
return _folders;
}
set {
_folders = value;
}
}
public List<InventoryItemBase> AllItems {
get {
return _allItems;
}
set {
_allItems = value;
}
}
public LLUUID UserID {
get {
return _userID;
}
set {
_userID = value;
}
}
public InventoryCollection()
{
Folders = new List<InventoryFolderBase>();
AllItems = new List<InventoryItemBase>();
_folders = new List<InventoryFolderBase>();
_allItems = new List<InventoryItemBase>();
}
public InventoryCollection(List<InventoryFolderBase> folders, List<InventoryItemBase> allItems)
{
Folders = folders;
AllItems = allItems;
_folders = folders;
_allItems = allItems;
}
}
}