[Enums, Flags] Convert ItemStatus and MachineType to flags for future use

This commit is contained in:
Matt Nadareski
2017-01-11 16:08:59 -08:00
parent 4185417c03
commit 7a9b4f05db
2 changed files with 27 additions and 25 deletions

View File

@@ -283,31 +283,6 @@
Archive = 5,
}
/// <summary>
/// Determine the status of the item
/// </summary>
public enum ItemStatus
{
NULL = -1, // This is a fake flag that is used for filter only
None = 0,
Good = 1,
BadDump = 2,
Nodump = 3,
Verified = 4,
}
/// <summary>
/// Determine what type of machine it is
/// </summary>
public enum MachineType
{
NULL = -1, // This is a fake flag used for filter only
None = 0,
Bios = 1,
Device = 2,
Mechanical = 3,
}
#endregion
#region Skippers and Mappers

View File

@@ -258,5 +258,32 @@ namespace SabreTools.Helper.Data
External = 0x20,
}
/// <summary>
/// Determine the status of the item
/// </summary>
[Flags]
public enum ItemStatus
{
NULL = -0x01, // This is a fake flag that is used for filter only
None = 0x00,
Good = 0x01,
BadDump = 0x02,
Nodump = 0x04,
Verified = 0x08,
}
/// <summary>
/// Determine what type of machine it is
/// </summary>
[Flags]
public enum MachineType
{
NULL = -0x01, // This is a fake flag used for filter only
None = 0x00,
Bios = 0x01,
Device = 0x02,
Mechanical = 0x04,
}
#endregion
}