Пример #1
0
 internal static void OnItemInstalled(ItemInstalled_t result)
 {
     if (IsOurAppId(result.m_unAppID))
     {
         if (Prefs.LogVerbose)
         {
             Log.Message("Workshop: Item installed: " + result.m_nPublishedFileId);
         }
         WorkshopItems.Notify_Installed(result.m_nPublishedFileId);
     }
 }
Пример #2
0
 internal static void OnItemSubscribed(RemoteStoragePublishedFileSubscribed_t result)
 {
     if (IsOurAppId(result.m_nAppID))
     {
         if (Prefs.LogVerbose)
         {
             Log.Message("Workshop: Item subscribed: " + result.m_nPublishedFileId);
         }
         WorkshopItems.Notify_Subscribed(result.m_nPublishedFileId);
     }
 }
Пример #3
0
 internal static void OnItemUnsubscribed(RemoteStoragePublishedFileUnsubscribed_t result)
 {
     if (IsOurAppId(result.m_nAppID))
     {
         if (Prefs.LogVerbose)
         {
             Log.Message("Workshop: Item unsubscribed: " + result.m_nPublishedFileId);
         }
         Find.WindowStack.WindowOfType <Page_ModsConfig>()?.Notify_SteamItemUnsubscribed(result.m_nPublishedFileId);
         Find.WindowStack.WindowOfType <Page_SelectScenario>()?.Notify_SteamItemUnsubscribed(result.m_nPublishedFileId);
         WorkshopItems.Notify_Unsubscribed(result.m_nPublishedFileId);
     }
 }
Пример #4
0
        internal static void OnItemUnsubscribed(RemoteStoragePublishedFileUnsubscribed_t result)
        {
            if (!Workshop.IsOurAppId(result.m_nAppID))
            {
                return;
            }
            if (Prefs.LogVerbose)
            {
                Log.Message("Workshop: Item unsubscribed: " + result.m_nPublishedFileId);
            }
            Page_ModsConfig page_ModsConfig = Find.WindowStack.WindowOfType <Page_ModsConfig>();

            if (page_ModsConfig != null)
            {
                page_ModsConfig.Notify_SteamItemUnsubscribed(result.m_nPublishedFileId);
            }
            Page_SelectScenario page_SelectScenario = Find.WindowStack.WindowOfType <Page_SelectScenario>();

            if (page_SelectScenario != null)
            {
                page_SelectScenario.Notify_SteamItemUnsubscribed(result.m_nPublishedFileId);
            }
            WorkshopItems.Notify_Unsubscribed(result.m_nPublishedFileId);
        }
Пример #5
0
 internal static void Notify_Unsubscribed(PublishedFileId_t pfid)
 {
     WorkshopItems.RebuildItemsList();
 }
Пример #6
0
 internal static void Notify_Installed(PublishedFileId_t pfid)
 {
     WorkshopItems.RebuildItemsList();
 }
Пример #7
0
 public static bool HasItem(PublishedFileId_t pfid)
 {
     return(WorkshopItems.GetItem(pfid) != null);
 }
Пример #8
0
 static WorkshopItems()
 {
     WorkshopItems.RebuildItemsList();
 }
Пример #9
0
 static WorkshopItems()
 {
     WorkshopItems.subbedItems = new List <WorkshopItem>();
     WorkshopItems.RebuildItemsList();
 }