PKHeX/PKHeX.Core/Saves/Substructures/Gen8/GameTime8.cs

11 lines
456 B
C#
Raw Normal View History

using System;
namespace PKHeX.Core
{
public sealed class GameTime8 : SaveBlock
{
public GameTime8(SaveFile sav, int offset) : base(sav) => Offset = offset;
2019-11-16 01:34:18 +00:00
public uint SecondsToStart { get => BitConverter.ToUInt32(Data, 0x28); set => BitConverter.GetBytes(value).CopyTo(Data, 0x28); }
public uint SecondsToFame { get => BitConverter.ToUInt32(Data, 0x30); set => BitConverter.GetBytes(value).CopyTo(Data, 0x30); }
}
}