Removed GetSubscribedItems, could not find a nice way to change to property

This commit is contained in:
Matthew Oldfield 2017-07-12 23:21:33 +01:00
parent 27f640fd5a
commit e6c395b2f6

View File

@ -123,36 +123,6 @@ public Item GetItem( ulong itemid )
return new Item( itemid, this );
}
/// <summary>
/// Creates a list of all item's that the user is currently subscribed
/// to for this App. This does not query titles or descriptions but
/// allows you to get the directories, state and ID of any subscribed Item.
/// This is mostly useful for getting all subscribed items install location
/// on initial load to load all workshop content
/// </summary>
public unsafe Item[] GetSubscribedItems()
{
Item[] items;
uint subAmount;
var amount = ugc.GetNumSubscribedItems();
PublishedFileId_t[] vecSubscribedItems = new PublishedFileId_t[amount];
fixed (PublishedFileId_t* vecSubscribedItems_ptr = vecSubscribedItems)
{
subAmount = ugc.GetSubscribedItems(vecSubscribedItems_ptr, amount);
}
if (subAmount < amount)
items = new Item[subAmount];
else
items = new Item[amount];
for(int i =0, length = items.Length; i<length; i++)
{
items[i] = new Item(vecSubscribedItems[i].Value, this);
}
return items;
}
/// <summary>
/// How a query should be ordered.
/// </summary>