PKHeX/PKHeX.Core/Saves/Substructures/Gen5/Misc5.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

21 lines
No EOL
483 B
C#

using System;
namespace PKHeX.Core
{
public sealed class Misc5 : SaveBlock
{
public Misc5(SAV5 sav, int offset) : base(sav) => Offset = offset;
public uint Money
{
get => BitConverter.ToUInt32(Data, Offset);
set => BitConverter.GetBytes(value).CopyTo(Data, Offset);
}
public int Badges
{
get => Data[Offset + 0x4];
set => Data[Offset + 0x4] = (byte)value;
}
}
}