public Entry(IItemProvider itemProvider, Trsr treasure) { ItemProvider = itemProvider; Treasure = treasure; Worlds = new Kh2WorldsList(); Types = new EnumModel <Trsr.TrsrType>(); }
internal Entry(Memt.IEntry entry, IObjectProvider objectProvider) { _entry = entry; _objectProvider = objectProvider; _memberLookup = entry switch { Memt.EntryVanilla _ => MemberLookupVanilla, Memt.EntryFinalMix _ => MemberLookupFinalMix, _ => MemberLookupFinalMix, }; Worlds = new Kh2WorldsList(); Worlds.First().Name = "Ignore"; MemberEditEnabled = _memberLookup.Select(x => x >= 0).ToArray(); }