mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Added small convenience function to recursively calculate total amounts of items loaded under library inventory node
This commit is contained in:
@@ -315,5 +315,20 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
return folderList;
|
||||
}
|
||||
|
||||
public int TotalCount
|
||||
{
|
||||
get
|
||||
{
|
||||
int total = Items.Count;
|
||||
|
||||
foreach (InventoryFolderImpl folder in SubFolders.Values)
|
||||
{
|
||||
total = total + folder.TotalCount;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user