mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
3f38b123a3
mostly renaming things, includes a little bit of added sugar and splitting methods to simplify the codebase. all methods are now PascalCase
26 lines
660 B
C#
26 lines
660 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.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;
|
|
}
|
|
}
|
|
}
|