internal static bool IsNullOrEmptySublist(this ILeveledItemEntryGetter entry, ILinkCache <ISkyrimMod, ISkyrimModGetter> linkCache) { if (entry.Data == null || entry.Data.Reference.IsNull) { return(true); } if (entry.Data.Reference.TryResolve <ILeveledItemGetter>(linkCache, out var leveledItem)) { return leveledItem.Entries is null or { Count : 0 } } ; return(false); }
public IndexedEntry(ILeveledItemGetter list, ILeveledItemEntryGetter entry, T item) { Item = item; Resolved = entry; List = list; }