2020-12-08 03:49:04 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Tracks information about modifications made to a <see cref="SaveFile"/>
|
|
|
|
|
/// </summary>
|
2021-12-06 07:54:59 +00:00
|
|
|
|
public sealed class SaveFileState
|
2020-12-08 03:49:04 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Mutable value tracking if the save file has been changed. This is set manually by modifications, and not for all modifications.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Edited { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Toggle determining if the save file can be exported.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// This is always true, unless the save file is a "fake" save file with blank data. Blank Save Files are essentially zeroed out buffers.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public readonly bool Exportable;
|
|
|
|
|
|
2022-02-10 00:48:55 +00:00
|
|
|
|
public SaveFileState(bool exportable = true)
|
2020-12-08 03:49:04 +00:00
|
|
|
|
{
|
|
|
|
|
Exportable = exportable;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|