namespace PKHeX.Core; public interface IPersonalEgg { /// /// First Egg Group /// int EggGroup1 { get; set; } /// /// Second Egg Group /// int EggGroup2 { get; set; } } public static class PersonalEggExtensions { /// /// Checks if the entry has either egg group equal to the input type. /// /// Object reference /// Egg group /// Egg is present in entry public static bool IsEggGroup(this IPersonalEgg pi, int group) => pi.EggGroup1 == group || pi.EggGroup2 == group; }