PKHeX/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs

15 lines
364 B
C#
Raw Normal View History

using System;
namespace PKHeX.Core
{
public sealed class BattleSubway5 : SaveBlock
{
public BattleSubway5(SAV5 sav, int offset) : base(sav) => Offset = offset;
public int BP
{
get => BitConverter.ToUInt16(Data, Offset);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, Offset);
}
}
}