mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-10 11:30:05 +03:00
Removed GetSubscribedItems, could not find a nice way to change to property
This commit is contained in:
parent
27f640fd5a
commit
e6c395b2f6
@ -123,36 +123,6 @@ namespace Facepunch.Steamworks
|
|||||||
return new Item( itemid, this );
|
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>
|
/// <summary>
|
||||||
/// How a query should be ordered.
|
/// How a query should be ordered.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user