diff --git a/Facepunch.Steamworks/SteamUgc.cs b/Facepunch.Steamworks/SteamUgc.cs index a36fb64..c727181 100644 --- a/Facepunch.Steamworks/SteamUgc.cs +++ b/Facepunch.Steamworks/SteamUgc.cs @@ -26,12 +26,22 @@ internal override void InitializeInterface( bool server ) internal static void InstallEvents( bool server ) { Dispatch.Install( x => OnDownloadItemResult?.Invoke( x.Result ), server ); + Dispatch.Install( x => OnItemSubscribed?.Invoke( x.AppID.Value, x.PublishedFileId ), server ); + Dispatch.Install( x => OnItemUnsubscribed?.Invoke( x.AppID.Value, x.PublishedFileId ), server ); + Dispatch.Install( x => OnItemInstalled?.Invoke( x.AppID.Value, x.PublishedFileId ), server ); } /// /// Posted after Download call /// public static event Action OnDownloadItemResult; + + /// + /// Posted when new item is subscribed + /// + public static event Action OnItemSubscribed; + public static event Action OnItemUnsubscribed; + public static event Action OnItemInstalled; public static async Task DeleteFileAsync( PublishedFileId fileId ) {