mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Merge pull request #44 from moldfield1995/master
Implemented Workshop Item Subscription
This commit is contained in:
commit
7eb4a88cee
@ -63,6 +63,19 @@ public void Download( bool highPriority = true )
|
||||
workshop.OnItemInstalled += OnItemInstalled;
|
||||
}
|
||||
|
||||
public void Subscribe()
|
||||
{
|
||||
workshop.ugc.SubscribeItem(Id);
|
||||
SubscriptionCount++;
|
||||
}
|
||||
|
||||
public void UnSubscribe()
|
||||
{
|
||||
workshop.ugc.UnsubscribeItem(Id);
|
||||
SubscriptionCount--;
|
||||
}
|
||||
|
||||
|
||||
private void OnFileDownloaded( ulong fileid, Callbacks.Result result )
|
||||
{
|
||||
if ( fileid != Id ) return;
|
||||
|
@ -122,7 +122,6 @@ public Item GetItem( ulong itemid )
|
||||
return new Item( itemid, this );
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// How a query should be ordered.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user