using System.ComponentModel; namespace PKHeX.Core { /// /// Base class for a savegame data reader. /// 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; } } }