mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Another major overhaul of inventory downloading, this time pertaining to inventory links. Added yet another function to IInventoryService to get multiple items at once, so that fetching collections of linked items is done once per folder instead of once per item.
This commit is contained in:
@@ -610,6 +610,21 @@ namespace OpenSim.Services.InventoryService
|
||||
return ConvertToOpenSim(items[0]);
|
||||
}
|
||||
|
||||
public virtual InventoryItemBase[] GetMultipleItems(UUID userID, UUID[] ids)
|
||||
{
|
||||
InventoryItemBase[] items = new InventoryItemBase[ids.Length];
|
||||
int i = 0;
|
||||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.Owner = userID;
|
||||
foreach (UUID id in ids)
|
||||
{
|
||||
item.ID = id;
|
||||
items[i++] = GetItem(item);
|
||||
}
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
public virtual InventoryFolderBase GetFolder(InventoryFolderBase folder)
|
||||
{
|
||||
XInventoryFolder[] folders = m_Database.GetFolders(
|
||||
|
||||
Reference in New Issue
Block a user