PKHeX/PKHeX.Core/Saves/Substructures/Gen7/SaveBlock.cs
Kurt 1b028198ad
Split gen5-7 saves with inheritance (#2319)
refer to pull request comments for summary
2019-06-08 19:56:11 -07:00

13 lines
No EOL
357 B
C#

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