namespace Polonium.Resources.FramePatches.Generic; public abstract partial class DictionaryFramePatch : FramePatch { public Dictionary Updates { get; set; } = new (); public Dictionary Filter(HashSet filter) { Dictionary res = new(); foreach (TKey key in filter) { if (!Updates.ContainsKey(key)) continue; res[key] = Updates[key]; } return res; } }