mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 09:08:02 +00:00
27 lines
No EOL
668 B
C#
27 lines
No EOL
668 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public sealed class Misc7b : SaveBlock
|
|
{
|
|
private readonly SaveFile SAV;
|
|
|
|
public Misc7b(SaveFile sav) : base(sav)
|
|
{
|
|
SAV = sav;
|
|
Offset = ((SAV7b)sav).GetBlockOffset(BelugaBlockIndex.Misc);
|
|
}
|
|
|
|
public uint Money
|
|
{
|
|
get => BitConverter.ToUInt32(Data, Offset + 4);
|
|
set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 4);
|
|
}
|
|
|
|
public string Rival
|
|
{
|
|
get => SAV.GetString(Offset + 0x200, 0x1A);
|
|
set => SAV.SetString(value, SAV.OTLength).CopyTo(Data, Offset + 0x200);
|
|
}
|
|
}
|
|
} |