mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-20 17:33:25 +00:00
1b028198ad
refer to pull request comments for summary
21 lines
No EOL
483 B
C#
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;
|
|
}
|
|
}
|
|
} |