mirror of
https://github.com/kwsch/PKHeX
synced 2025-03-01 13:57:22 +00:00
26 lines
675 B
C#
26 lines
675 B
C#
namespace PKHeX.Core
|
|
{
|
|
public abstract class BattleVideo
|
|
{
|
|
public abstract PKM[] BattlePKMs { get; }
|
|
public abstract int Generation { get; }
|
|
|
|
public static BattleVideo getVariantBattleVideo(byte[] data)
|
|
{
|
|
if (BV6.getIsValid(data))
|
|
return new BV6(data);
|
|
if (BV7.getIsValid(data))
|
|
return new BV7(data);
|
|
return null;
|
|
}
|
|
|
|
public static bool getIsValid(byte[] data)
|
|
{
|
|
if (BV6.getIsValid(data))
|
|
return true;
|
|
if (BV7.getIsValid(data))
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|
|
}
|