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 class InventoryCollection
{ {
public List<InventoryFolderBase> Folders; public List<InventoryFolderBase> _folders;
public List<InventoryItemBase> AllItems; public List<InventoryItemBase> _allItems;
public LLUUID UserID; 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() public InventoryCollection()
{ {
Folders = new List<InventoryFolderBase>(); _folders = new List<InventoryFolderBase>();
AllItems = new List<InventoryItemBase>(); _allItems = new List<InventoryItemBase>();
} }
public InventoryCollection(List<InventoryFolderBase> folders, List<InventoryItemBase> allItems) public InventoryCollection(List<InventoryFolderBase> folders, List<InventoryItemBase> allItems)
{ {
Folders = folders; _folders = folders;
AllItems = allItems; _allItems = allItems;
} }
} }
} }