diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs b/Facepunch.Steamworks/Interfaces/Workshop.Item.cs index 5045028..21d943d 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.Item.cs @@ -63,6 +63,19 @@ namespace Facepunch.Steamworks 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; diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs index 9491e2e..e35bc4b 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.cs @@ -122,7 +122,6 @@ namespace Facepunch.Steamworks return new Item( itemid, this ); } - /// /// How a query should be ordered. ///