Remove Color class, add InvalidMagicException

This commit is contained in:
Chev 2021-01-10 20:07:53 -08:00
parent fe3920e7f3
commit 007fa6ff42
2 changed files with 14 additions and 16 deletions

View file

@ -1,16 +0,0 @@
namespace BOTWToolset
{
struct Color
{
public byte R;
public byte G;
public byte B;
public Color(byte r, byte g, byte b)
{
R = r;
G = g;
B = b;
}
}
}

View file

@ -0,0 +1,14 @@
using System;
namespace BOTWToolset.Exceptions
{
/// <summary>
/// An exception that's thrown when the magic header in a file is not what was expected.
/// </summary>
class InvalidMagicException : Exception
{
public InvalidMagicException() : base() { }
public InvalidMagicException(string message) : base(message) { }
public InvalidMagicException(string message, Exception inner) : base(message, inner) { }
}
}