mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 12:25:21 -05:00
Minor clean
This commit is contained in:
@@ -9,7 +9,7 @@ namespace PKHeX.Core;
|
||||
/// <summary>
|
||||
/// Calculates differences in the Event Blocks between two <see cref="SaveFile"/>.
|
||||
/// </summary>
|
||||
public class EventBlockDiff<T, T2> : IEventWorkDiff where T : IEventFlagArray, IEventWorkArray<T2> where T2 : unmanaged, IEquatable<T2>
|
||||
public sealed class EventBlockDiff<T, T2> : IEventWorkDiff where T : IEventFlagArray, IEventWorkArray<T2> where T2 : unmanaged, IEquatable<T2>
|
||||
{
|
||||
public List<int> SetFlags { get; } = new();
|
||||
public List<int> ClearedFlags { get; } = new();
|
||||
@@ -36,7 +36,7 @@ public EventBlockDiff(string f1, string f2)
|
||||
Diff(t1, t2);
|
||||
}
|
||||
|
||||
protected EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2)
|
||||
private EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2)
|
||||
{
|
||||
if (s1.GetType() != s2.GetType())
|
||||
return DifferentGameGroup;
|
||||
@@ -47,7 +47,7 @@ protected EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2)
|
||||
return Valid;
|
||||
}
|
||||
|
||||
protected void Diff(T s1, T s2)
|
||||
private void Diff(T s1, T s2)
|
||||
{
|
||||
Message = SanityCheckSaveInfo(s1, s2);
|
||||
if (Message != Valid)
|
||||
|
||||
@@ -10,4 +10,4 @@ public interface IEventWorkDiff
|
||||
List<string> WorkDiff { get; }
|
||||
EventWorkDiffCompatibility Message { get; }
|
||||
IReadOnlyList<string> Summarize();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,18 +3,13 @@
|
||||
/// <summary>
|
||||
/// Tracks information about modifications made to a <see cref="SaveFile"/>
|
||||
/// </summary>
|
||||
public sealed record SaveFileState(bool Exportable = true)
|
||||
/// <param name="Exportable">
|
||||
/// Toggle determining if the save file can be exported.
|
||||
/// </param>
|
||||
public sealed record SaveFileState(bool Exportable)
|
||||
{
|
||||
/// <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 bool Exportable { get; } = Exportable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user