Ejemplo n.º 1
0
        internal static void LogStatus()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendLine("All subscribed items (" + SteamUGC.GetNumSubscribedItems() + " total):");
            List <PublishedFileId_t> list = Workshop.AllSubscribedItems().ToList();

            for (int i = 0; i < list.Count; i++)
            {
                stringBuilder.AppendLine("   " + Workshop.ItemStatusString(list[i]));
            }
            stringBuilder.AppendLine("All installed mods:");
            foreach (ModMetaData allInstalledMod in ModLister.AllInstalledMods)
            {
                stringBuilder.AppendLine("   " + allInstalledMod.Identifier + ": " + Workshop.ItemStatusString(allInstalledMod.GetPublishedFileId()));
            }
            Log.Message(stringBuilder.ToString());
            List <PublishedFileId_t> list2 = Workshop.AllSubscribedItems().ToList();

            PublishedFileId_t[] array = new PublishedFileId_t[list2.Count];
            for (int j = 0; j < list2.Count; j++)
            {
                ref PublishedFileId_t val = ref array[j];
                PublishedFileId_t     publishedFileId_t = list2[j];
                val = (PublishedFileId_t)publishedFileId_t.m_PublishedFileId;
            }
Ejemplo n.º 2
0
        internal static void SteamWorkshopStatus()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendLine("All subscribed items (" + SteamUGC.GetNumSubscribedItems() + " total):");
            List <PublishedFileId_t> list = Workshop.AllSubscribedItems().ToList <PublishedFileId_t>();

            for (int i = 0; i < list.Count; i++)
            {
                stringBuilder.AppendLine("   " + Workshop.ItemStatusString(list[i]));
            }
            stringBuilder.AppendLine("All installed mods:");
            foreach (ModMetaData modMetaData in ModLister.AllInstalledMods)
            {
                stringBuilder.AppendLine("   " + modMetaData.Identifier + ": " + Workshop.ItemStatusString(modMetaData.GetPublishedFileId()));
            }
            Log.Message(stringBuilder.ToString(), false);
            List <PublishedFileId_t> list2 = Workshop.AllSubscribedItems().ToList <PublishedFileId_t>();

            PublishedFileId_t[] array = new PublishedFileId_t[list2.Count];
            for (int j = 0; j < list2.Count; j++)
            {
                array[j] = (PublishedFileId_t)list2[j].m_PublishedFileId;
            }
            Workshop.RequestItemsDetails(array);
        }