PKHeX/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs
Kurt 1b028198ad
Split gen5-7 saves with inheritance (#2319)
refer to pull request comments for summary
2019-06-08 19:56:11 -07:00

15 lines
No EOL
357 B
C#

using System;
namespace PKHeX.Core
{
public 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);
}
}
}