public static bool HasFlagFast(this ECastlelingRights value, ECastlelingRights flag) => (value & flag) != 0;
 public static int AsInt(this ECastlelingRights value) => (int)value;
Example #3
0
 public static ulong GetZobristCastleling(this ECastlelingRights index) => ZobristCastling[index.AsInt()];