PKHeX/PKHeX.Core/Saves/Substructures/Battle Videos/BattleVideo.cs
Kurt 23e765e550 Add opening for rental team dumps
Dunno why anyone would want these, lol
Closes #3074
2020-11-03 20:12:42 -08:00

30 lines
766 B
C#

using System.Collections.Generic;
namespace PKHeX.Core
{
public abstract class BattleVideo : IPokeGroup
{
public abstract PKM[] BattlePKMs { get; }
public abstract int Generation { get; }
public IEnumerable<PKM> Contents => BattlePKMs;
public static BattleVideo? GetVariantBattleVideo(byte[] data)
{
if (BV6.IsValid(data))
return new BV6(data);
if (BV7.IsValid(data))
return new BV7(data);
return null;
}
public static bool IsValid(byte[] data)
{
if (BV6.IsValid(data))
return true;
if (BV7.IsValid(data))
return true;
return false;
}
}
}