mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +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:
@@ -99,6 +99,22 @@ namespace OpenSim.Region.CoreModules.Framework.Library
|
||||
return invColl;
|
||||
}
|
||||
|
||||
public virtual InventoryItemBase[] GetMultipleItems(UUID principalID, UUID[] itemIDs)
|
||||
{
|
||||
InventoryItemBase[] itemColl = new InventoryItemBase[itemIDs.Length];
|
||||
int i = 0;
|
||||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.Owner = principalID;
|
||||
foreach (UUID fid in itemIDs)
|
||||
{
|
||||
item.ID = fid;
|
||||
itemColl[i++] = GetItem(item);
|
||||
}
|
||||
|
||||
return itemColl;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add a new folder to the user's inventory
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user