* Added small convenience function to recursively calculate total amounts of items loaded under library inventory node

0.6.0-stable
lbsa71 2008-09-11 11:39:43 +00:00
parent 2dae0291c5
commit aa12787a17
1 changed files with 15 additions and 0 deletions

View File

@ -315,5 +315,20 @@ namespace OpenSim.Framework.Communications.Cache
return folderList; return folderList;
} }
public int TotalCount
{
get
{
int total = Items.Count;
foreach (InventoryFolderImpl folder in SubFolders.Values)
{
total = total + folder.TotalCount;
}
return total;
}
}
} }
} }