mirror of
https://github.com/chev2/botw-toolset.git
synced 2026-05-10 19:41:42 +00:00
Remove Color class, add InvalidMagicException
This commit is contained in:
parent
fe3920e7f3
commit
007fa6ff42
2 changed files with 14 additions and 16 deletions
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
14
botw-toolset/Exceptions/InvalidMagicException.cs
Normal file
14
botw-toolset/Exceptions/InvalidMagicException.cs
Normal 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) { }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue