mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-05 17:18:46 +00:00
21 lines
483 B
C#
21 lines
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|