mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-24 19:33:10 +00:00
19 lines
No EOL
478 B
C#
19 lines
No EOL
478 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Base class for a savegame data reader.
|
|
/// </summary>
|
|
public abstract class SaveBlock
|
|
{
|
|
public int Offset { get; protected set; }
|
|
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;
|
|
}
|
|
}
|
|
} |