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

21 lines
483 B
C#
Raw Normal View History

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;
}
}
}