2018-11-01 22:38:09 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
2019-02-10 04:24:38 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Base class for a savegame data reader.
|
|
|
|
/// </summary>
|
2018-11-01 22:38:09 +00:00
|
|
|
public abstract class SaveBlock
|
|
|
|
{
|
2018-11-14 03:15:27 +00:00
|
|
|
public int Offset { get; protected set; }
|
2019-11-16 01:34:18 +00:00
|
|
|
public readonly byte[] Data;
|
2019-06-09 02:56:11 +00:00
|
|
|
protected readonly SaveFile SAV;
|
|
|
|
protected SaveBlock(SaveFile sav) => Data = (SAV = sav).Data;
|
2019-11-16 01:34:18 +00:00
|
|
|
|
|
|
|
protected SaveBlock(SaveFile sav, byte[] data)
|
|
|
|
{
|
|
|
|
SAV = sav;
|
|
|
|
Data = data;
|
|
|
|
}
|
2018-11-01 22:38:09 +00:00
|
|
|
}
|
|
|
|
}
|