2019-06-09 02:56:11 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2019-10-04 02:09:02 +00:00
|
|
|
|
public sealed class SangoInfoBlock : SaveBlock
|
2019-06-09 02:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
public SangoInfoBlock(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
|
|
|
|
|
2019-09-10 07:21:51 +00:00
|
|
|
|
private const uint EON_MAGIC = WC6.EonTicketConst;
|
2019-06-09 02:56:11 +00:00
|
|
|
|
|
|
|
|
|
public uint EonTicketReceivedMagic // 0x319B8
|
|
|
|
|
{
|
|
|
|
|
get => BitConverter.ToUInt32(Data, Offset + 0x63B8);
|
|
|
|
|
set => SAV.SetData(BitConverter.GetBytes(value), Offset + 0x63B8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string SecretBaseQRText // 0x319BC -- 17*u16
|
|
|
|
|
{
|
|
|
|
|
get => SAV.GetString(Offset + 0x63BC, 0x10);
|
|
|
|
|
set => SAV.SetData(SAV.SetString(value, 0x10), Offset + 0x63BC);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public uint EonTicketSendMagic // 0x319DE
|
|
|
|
|
{
|
|
|
|
|
get => BitConverter.ToUInt32(Data, Offset + 0x63DE);
|
|
|
|
|
set => SAV.SetData(BitConverter.GetBytes(value), Offset + 0x63DE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ReceiveEon() => EonTicketReceivedMagic = EON_MAGIC;
|
|
|
|
|
public void EnableSendEon() => EonTicketSendMagic = EON_MAGIC;
|
|
|
|
|
}
|
|
|
|
|
}
|