public static void RegisterCallbacks() { _itemInstalled = Callback <ItemInstalled_t> .Create((callback) => { if (callback.m_unAppID == SteamManager.AppID) { ItemInstalled?.Invoke(callback); } }); _fileUnsubscribed = Callback <RemoteStoragePublishedFileUnsubscribed_t> .Create((callback) => { if (callback.m_nAppID == SteamManager.AppID) { FileUnsubscribed?.Invoke(callback); } }); _fileSubscribed = Callback <RemoteStoragePublishedFileSubscribed_t> .Create((callback) => { if (callback.m_nAppID == SteamManager.AppID) { FileSubscribed?.Invoke(callback); } }); }
private async void ItemInstalled(ItemInstalled item) { var result = await SteamUGC.GetItemDetailsAsync(item.PublishedFile); Console.WriteLine("Installed: " + result.Details.Title); }
private static void ItemInstalled(ItemInstalled param) => OnItemInstalled?.Invoke(param);