2021-12-20 00:55:30 +00:00
|
|
|
package util;
|
|
|
|
|
2022-03-12 21:03:32 +00:00
|
|
|
import kernel.peripherals.Redstone.BundleMask;
|
|
|
|
|
2022-03-12 20:48:09 +00:00
|
|
|
enum abstract Color(Int) from cc.Colors.Color to cc.Colors.Color {
|
|
|
|
var White = 0x1;
|
|
|
|
var Orange = 0x2;
|
|
|
|
var Magenta = 0x4;
|
|
|
|
var LightBlue = 0x8;
|
|
|
|
var Yellow = 0x10;
|
|
|
|
var Lime = 0x20;
|
|
|
|
var Pink = 0x40;
|
|
|
|
var Gray = 0x80;
|
|
|
|
var LightGray = 0x100;
|
|
|
|
var Cyan = 0x200;
|
|
|
|
var Purple = 0x400;
|
|
|
|
var Blue = 0x800;
|
|
|
|
var Brown = 0x1000;
|
|
|
|
var Green = 0x2000;
|
|
|
|
var Red = 0x4000;
|
|
|
|
var Black = 0x8000;
|
2022-03-12 21:03:32 +00:00
|
|
|
|
|
|
|
@:op(A + B)
|
2022-03-13 21:29:25 +00:00
|
|
|
@:op(A | B)
|
2022-03-12 21:03:32 +00:00
|
|
|
public inline function combine(rhs: Color):BundleMask {
|
2022-03-13 21:29:25 +00:00
|
|
|
return this | rhs;
|
2022-03-12 21:03:32 +00:00
|
|
|
}
|
2021-12-20 00:55:30 +00:00
|
|
|
}
|