mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
a385a8481d
Use flags to request header/footer in the output gets rid of the DSV/GCI bool arguments
17 lines
No EOL
336 B
C#
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;
|
|
}
|
|
} |