示例#1
0
        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);
        }
示例#2
0
 public IndexedEntry(ILeveledItemGetter list, ILeveledItemEntryGetter entry, T item)
 {
     Item     = item;
     Resolved = entry;
     List     = list;
 }