예제 #1
0
        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);
                }
            });
        }
예제 #2
0
        private async void ItemInstalled(ItemInstalled item)
        {
            var result = await SteamUGC.GetItemDetailsAsync(item.PublishedFile);

            Console.WriteLine("Installed: " + result.Details.Title);
        }
예제 #3
0
 private static void ItemInstalled(ItemInstalled param) => OnItemInstalled?.Invoke(param);