コード例 #1
0
 internal static void CopyRibbonSetCommon7(this IRibbonSetCommon7 set, IRibbonSetCommon7 dest)
 {
     dest.RibbonChampionAlola    = set.RibbonChampionAlola;
     dest.RibbonBattleRoyale     = set.RibbonBattleRoyale;
     dest.RibbonBattleTreeGreat  = set.RibbonBattleTreeGreat;
     dest.RibbonBattleTreeMaster = set.RibbonBattleTreeMaster;
 }
コード例 #2
0
 internal static bool[] RibbonBits(this IRibbonSetCommon7 set)
 {
     return(new[]
     {
         set.RibbonChampionAlola,
         set.RibbonBattleRoyale,
         set.RibbonBattleTreeGreat,
         set.RibbonBattleTreeMaster,
     });
 }
コード例 #3
0
 private static IEnumerable <RibbonResult> GetInvalidRibbons7Any(PKM pkm, IRibbonSetCommon7 s7)
 {
     if (!IsAllowedBattleFrontier(pkm.Species))
     {
         if (s7.RibbonBattleRoyale)
         {
             yield return(new RibbonResult(nameof(s7.RibbonBattleRoyale)));
         }
         if (s7.RibbonBattleTreeGreat)
         {
             yield return(new RibbonResult(nameof(s7.RibbonBattleTreeGreat)));
         }
         if (s7.RibbonBattleTreeMaster)
         {
             yield return(new RibbonResult(nameof(s7.RibbonBattleTreeMaster)));
         }
     }
 }
コード例 #4
0
ファイル: IRibbonSetCommon7.cs プロジェクト: wooddice/PKHeX
 internal static string[] RibbonNames(this IRibbonSetCommon7 _) => RibbonSetNamesCommon7;