mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
Update MetaColorAttribute.cs
This commit is contained in:
parent
d5a48b206e
commit
bdf31769bf
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user