6using Newtonsoft.Json.Linq;
59 return JArray.FromObject((
object)
list);
92 if (
item2.FileName ==
null)
111 IsEnabled =
item2.Enabled,
112 SortingOrder = item2.SortingOrder
200 catch (JsonReaderException val)
202 JsonReaderException
arg = val;
void Add(TKey key, TValue value)
void AddRange(IEnumerable< T > collection)
static string[] GetDirectories(string path)
static string[] GetFiles(string path)
static bool Exists([NotNullWhen(true)] string? path)
static bool Exists([NotNullWhen(true)] string? path)
static string Combine(string path1, string path2)
static ? string GetFileName(string? path)
static void CreatePacksFromZips(IServiceProvider services, string searchPath, List< ResourcePack > resourcePacks)
IEnumerable< ResourcePack > pack.pack.pack.FileName select pack
static ResourcePackList FromJson(JArray serializedState, IServiceProvider services, string searchPath)
IEnumerable< ResourcePack > DisabledPacks
static IEnumerable< ResourcePackEntry > CreatePackEntryListFromJson(JArray serializedState)
static void CreatePacksFromSavedJson(JArray serializedState, IServiceProvider services, string searchPath, List< ResourcePack > resourcePacks)
IEnumerable< ResourcePack > AllPacks
static ResourcePackList Publishable(JArray serializedState, IServiceProvider services, string searchPath)
ResourcePackList(IEnumerable< ResourcePack > resourcePacks)
IEnumerable< ResourcePack > pack.pack.FileName select pack
static void CreatePacksFromWorkshopFolders(IServiceProvider services, List< ResourcePack > resourcePacks)
static void CreatePacksFromDirectories(IServiceProvider services, string searchPath, List< ResourcePack > resourcePacks)
IEnumerable< ResourcePack > EnabledPacks
readonly List< ResourcePack > _resourcePacks
static Terraria.Social.Base.WorkshopSocialModule Workshop
ResourcePackEntry(string name, bool enabled, int sortingOrder)