Definition at line 88 of file ResourcePackList.cs.
89 {
91 {
92 if (
item2.FileName ==
null)
93 {
94 continue;
95 }
97 try
98 {
100 ResourcePack.BrandingType
branding = ResourcePack.BrandingType.None;
102 {
104 flag = true;
106 }
107 if (flag)
108 {
110 {
111 IsEnabled =
item2.Enabled,
112 SortingOrder = item2.SortingOrder
113 };
115 }
116 }
118 {
120 }
121 }
122 }
void Add(TKey key, TValue value)
static bool Exists([NotNullWhen(true)] string? path)
static bool Exists([NotNullWhen(true)] string? path)
static string Combine(string path1, string path2)
static IEnumerable< ResourcePackEntry > CreatePackEntryListFromJson(JArray serializedState)
static Terraria.Social.Base.WorkshopSocialModule Workshop
References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.IO.Path.Combine(), Terraria.IO.ResourcePackList.CreatePackEntryListFromJson(), System.IO.Directory.Exists(), System.IO.File.Exists(), System.item, System.text, Terraria.Social.SocialAPI.Workshop, and System.Console.WriteLine().
Referenced by Terraria.IO.ResourcePackList.FromJson().