2022-03-06 02:13:31 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Tracks information about modifications made to a <see cref="SaveFile"/>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed record SaveFileState(bool Exportable = true)
|
2020-12-08 03:49:04 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-03-06 02:13:31 +00:00
|
|
|
|
/// Mutable value tracking if the save file has been changed. This is set manually by modifications, and not for all modifications.
|
2020-12-08 03:49:04 +00:00
|
|
|
|
/// </summary>
|
2022-03-06 02:13:31 +00:00
|
|
|
|
public bool Edited { get; set; }
|
2020-12-08 03:49:04 +00:00
|
|
|
|
|
2022-03-06 02:13:31 +00:00
|
|
|
|
/// <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 bool Exportable { get; } = Exportable;
|
2020-12-08 03:49:04 +00:00
|
|
|
|
}
|