2
0
Fork 0
mirror of https://github.com/kwsch/PKHeX synced 2024-12-19 08:53:28 +00:00
PKHeX/PKHeX.Core/Saves/Substructures/Gen7/SaveBlock.cs
Kurt 594db92ad0 Minor clean
Handle some stragglers
2020-12-21 17:48:08 -08:00

23 lines
No EOL
537 B
C#

using System.ComponentModel;
namespace PKHeX.Core
{
/// <summary>
/// Base class for a savegame data reader.
/// </summary>
public abstract class SaveBlock
{
[Browsable(false)]
public int Offset { get; protected init; }
public readonly byte[] Data;
protected readonly SaveFile SAV;
protected SaveBlock(SaveFile sav) => Data = (SAV = sav).Data;
protected SaveBlock(SaveFile sav, byte[] data)
{
SAV = sav;
Data = data;
}
}
}