mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 14:48:02 +03:00
Merge pull request #44 from moldfield1995/master
Implemented Workshop Item Subscription
This commit is contained in:
commit
7eb4a88cee
@ -63,6 +63,19 @@ namespace Facepunch.Steamworks
|
|||||||
workshop.OnItemInstalled += OnItemInstalled;
|
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 )
|
private void OnFileDownloaded( ulong fileid, Callbacks.Result result )
|
||||||
{
|
{
|
||||||
if ( fileid != Id ) return;
|
if ( fileid != Id ) return;
|
||||||
|
@ -122,7 +122,6 @@ namespace Facepunch.Steamworks
|
|||||||
return new Item( itemid, this );
|
return new Item( itemid, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <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