mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 21:13:05 +00:00
98ef0299b6
Move some logic around to the more appropriate spot
32 lines
1 KiB
C#
32 lines
1 KiB
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Tracks information about modifications made to a <see cref="SaveFile"/>
|
|
/// </summary>
|
|
public class SaveFileState
|
|
{
|
|
/// <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;
|
|
|
|
/// <summary>
|
|
/// Original Binary Data the save file was loaded with.
|
|
/// </summary>
|
|
public readonly byte[] BAK;
|
|
|
|
public SaveFileState(byte[] bak, bool exportable = true)
|
|
{
|
|
BAK = bak;
|
|
Exportable = exportable;
|
|
}
|
|
}
|
|
}
|