PKHeX/PKHeX.Core/Saves/Util/ExportFlags.cs
Kurt a385a8481d Misc tweak to savefile export
Use flags to request header/footer in the output
gets rid of the DSV/GCI bool arguments
2019-02-18 21:59:57 -08:00

17 lines
No EOL
336 B
C#

using System;
namespace PKHeX.Core
{
[Flags]
public enum ExportFlags
{
None,
IncludeFooter = 1 << 0,
IncludeHeader = 1 << 1,
}
public static class ExportFlagsExtensions
{
public static bool HasFlagFast(this ExportFlags value, ExportFlags flag) => (value & flag) != 0;
}
}