mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
f59d012cda
Just supports importing dumps (via code), and the GUI supports loading the party data to boxes like the other supported battle video formats.
34 lines
916 B
C#
34 lines
916 B
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public abstract class BattleVideo : IPokeGroup
|
|
{
|
|
public abstract IReadOnlyList<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);
|
|
if (BV3.IsValid(data))
|
|
return new BV3(data);
|
|
return null;
|
|
}
|
|
|
|
public static bool IsValid(byte[] data)
|
|
{
|
|
if (BV6.IsValid(data))
|
|
return true;
|
|
if (BV7.IsValid(data))
|
|
return true;
|
|
if (BV3.IsValid(data))
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|
|
}
|