mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-16 21:38:40 +00:00
RibbonExtensions public accessors (#4006)
This commit is contained in:
parent
b68899e0dd
commit
ce9a3d0104
11 changed files with 22 additions and 22 deletions
|
@ -8,9 +8,9 @@ public interface IRibbonSetCommon3
|
|||
bool RibbonEffort { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetCommon3(this IRibbonSetCommon3 set, IRibbonSetCommon3 dest)
|
||||
public static void CopyRibbonSetCommon3(this IRibbonSetCommon3 set, IRibbonSetCommon3 dest)
|
||||
{
|
||||
dest.RibbonChampionG3 = set.RibbonChampionG3;
|
||||
dest.RibbonArtist = set.RibbonArtist;
|
||||
|
|
|
@ -19,9 +19,9 @@ public interface IRibbonSetCommon4
|
|||
bool RibbonLegend { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetCommon4(this IRibbonSetCommon4 set, IRibbonSetCommon4 dest)
|
||||
public static void CopyRibbonSetCommon4(this IRibbonSetCommon4 set, IRibbonSetCommon4 dest)
|
||||
{
|
||||
dest.RibbonChampionSinnoh = set.RibbonChampionSinnoh;
|
||||
dest.RibbonAlert = set.RibbonAlert;
|
||||
|
|
|
@ -18,14 +18,14 @@ public interface IRibbonSetCommon6
|
|||
bool RibbonMasterToughness { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks if the <see cref="set"/> has all five contest stat ribbons true.
|
||||
/// </summary>
|
||||
public static bool HasAllContestRibbons(this IRibbonSetCommon6 set) => set is { RibbonMasterCoolness: true, RibbonMasterBeauty: true, RibbonMasterCuteness: true, RibbonMasterCleverness: true, RibbonMasterToughness: true };
|
||||
|
||||
internal static void CopyRibbonSetCommon6(this IRibbonSetCommon6 set, IRibbonSetCommon6 dest)
|
||||
public static void CopyRibbonSetCommon6(this IRibbonSetCommon6 set, IRibbonSetCommon6 dest)
|
||||
{
|
||||
dest.RibbonChampionKalos = set.RibbonChampionKalos;
|
||||
dest.RibbonChampionG6Hoenn = set.RibbonChampionG6Hoenn;
|
||||
|
|
|
@ -9,9 +9,9 @@ public interface IRibbonSetCommon7
|
|||
bool RibbonBattleTreeMaster { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetCommon7(this IRibbonSetCommon7 set, IRibbonSetCommon7 dest)
|
||||
public static void CopyRibbonSetCommon7(this IRibbonSetCommon7 set, IRibbonSetCommon7 dest)
|
||||
{
|
||||
dest.RibbonChampionAlola = set.RibbonChampionAlola;
|
||||
dest.RibbonBattleRoyale = set.RibbonBattleRoyale;
|
||||
|
|
|
@ -10,9 +10,9 @@ public interface IRibbonSetCommon8
|
|||
bool RibbonHisui { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetCommon8(this IRibbonSetCommon8 set, IRibbonSetCommon8 dest)
|
||||
public static void CopyRibbonSetCommon8(this IRibbonSetCommon8 set, IRibbonSetCommon8 dest)
|
||||
{
|
||||
dest.RibbonChampionGalar = set.RibbonChampionGalar;
|
||||
dest.RibbonTowerMaster = set.RibbonTowerMaster;
|
||||
|
|
|
@ -7,9 +7,9 @@ public interface IRibbonSetCommon9
|
|||
bool RibbonOnceInALifetime { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetCommon9(this IRibbonSetCommon9 set, IRibbonSetCommon9 dest)
|
||||
public static void CopyRibbonSetCommon9(this IRibbonSetCommon9 set, IRibbonSetCommon9 dest)
|
||||
{
|
||||
dest.RibbonChampionPaldea = set.RibbonChampionPaldea;
|
||||
dest.RibbonOnceInALifetime = set.RibbonOnceInALifetime;
|
||||
|
|
|
@ -11,9 +11,9 @@ public interface IRibbonSetEvent3
|
|||
bool RibbonChampionNational { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetEvent3(this IRibbonSetEvent3 set, IRibbonSetEvent3 dest)
|
||||
public static void CopyRibbonSetEvent3(this IRibbonSetEvent3 set, IRibbonSetEvent3 dest)
|
||||
{
|
||||
dest.RibbonEarth = set.RibbonEarth;
|
||||
dest.RibbonNational = set.RibbonNational;
|
||||
|
|
|
@ -14,9 +14,9 @@ public interface IRibbonSetEvent4
|
|||
bool RibbonSouvenir { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetEvent4(this IRibbonSetEvent4 set, IRibbonSetEvent4 dest)
|
||||
public static void CopyRibbonSetEvent4(this IRibbonSetEvent4 set, IRibbonSetEvent4 dest)
|
||||
{
|
||||
dest.RibbonClassic = set.RibbonClassic;
|
||||
dest.RibbonWishing = set.RibbonWishing;
|
||||
|
|
|
@ -63,7 +63,7 @@ public interface IRibbonSetMarks
|
|||
int RibbonMarkCount { get; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
public static bool HasWeatherMark(this IRibbonSetMark8 m)
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ internal static partial class RibbonExtensions
|
|||
|| m.RibbonMarkBlizzard || m.RibbonMarkDry || m.RibbonMarkSandstorm || m.RibbonMarkMisty;
|
||||
}
|
||||
|
||||
internal static void CopyRibbonSetMark8(this IRibbonSetMark8 set, IRibbonSetMark8 dest)
|
||||
public static void CopyRibbonSetMark8(this IRibbonSetMark8 set, IRibbonSetMark8 dest)
|
||||
{
|
||||
dest.RibbonMarkLunchtime = set.RibbonMarkLunchtime;
|
||||
dest.RibbonMarkSleepyTime = set.RibbonMarkSleepyTime;
|
||||
|
|
|
@ -15,9 +15,9 @@ public interface IRibbonSetMark9
|
|||
bool HasMarkEncounter9 { get; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetMark9(this IRibbonSetMark9 set, IRibbonSetMark9 dest)
|
||||
public static void CopyRibbonSetMark9(this IRibbonSetMark9 set, IRibbonSetMark9 dest)
|
||||
{
|
||||
dest.RibbonMarkJumbo = set.RibbonMarkJumbo;
|
||||
dest.RibbonMarkMini = set.RibbonMarkMini;
|
||||
|
|
|
@ -8,9 +8,9 @@ public interface IRibbonSetMemory6
|
|||
bool HasBattleMemoryRibbon { get; set; }
|
||||
}
|
||||
|
||||
internal static partial class RibbonExtensions
|
||||
public static partial class RibbonExtensions
|
||||
{
|
||||
internal static void CopyRibbonSetMemory6(this IRibbonSetMemory6 set, IRibbonSetMemory6 dest)
|
||||
public static void CopyRibbonSetMemory6(this IRibbonSetMemory6 set, IRibbonSetMemory6 dest)
|
||||
{
|
||||
dest.HasContestMemoryRibbon = set.HasContestMemoryRibbon;
|
||||
dest.HasBattleMemoryRibbon = set.HasBattleMemoryRibbon;
|
||||
|
|
Loading…
Add table
Reference in a new issue