PKHeX/PKHeX.Core/Ribbons/IRibbonSetCommon9.cs
2023-12-17 16:41:15 -08:00

24 lines
684 B
C#

namespace PKHeX.Core;
/// <summary> Common Ribbons introduced in Generation 9 </summary>
public interface IRibbonSetCommon9 : IRibbonPartner
{
bool RibbonChampionPaldea { get; set; }
bool RibbonOnceInALifetime { get; set; }
new bool RibbonPartner { get; set; }
}
public interface IRibbonPartner
{
public bool RibbonPartner { get; }
}
public static partial class RibbonExtensions
{
public static void CopyRibbonSetCommon9(this IRibbonSetCommon9 set, IRibbonSetCommon9 dest)
{
dest.RibbonChampionPaldea = set.RibbonChampionPaldea;
dest.RibbonOnceInALifetime = set.RibbonOnceInALifetime;
dest.RibbonPartner = set.RibbonPartner;
}
}