diff --git a/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs b/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs index 1e21799..b8ac82c 100644 --- a/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs @@ -248,6 +248,9 @@ namespace DCFApixels.DragonECS #endregion #region Operators + public static implicit operator MetaColor((byte, byte, byte) a) { return new MetaColor(a.Item1, a.Item2, a.Item3); } + public static implicit operator MetaColor((byte, byte, byte, byte) a) { return new MetaColor(a.Item1, a.Item2, a.Item3, a.Item4); } + public static implicit operator MetaColor(int a) { return new MetaColor(a); } public static bool operator ==(MetaColor a, MetaColor b) { return a.colorCode == b.colorCode; } public static bool operator !=(MetaColor a, MetaColor b) { return a.colorCode != b.colorCode; }