Exemple #1
0
 public NotificationDetail GetLink(object entityId)
 {
     return(new NotificationDetail
     {
         Link = MagicDetails.Button(Convert.ToInt32(entityId))
     });
 }
        public static Bitboard BishopAttacks(Square square, Bitboard occupied)
        {
            MagicDetails magic = _bishopMagics[(int)square];
            Bitboard     mask  = _bishopMasks[(int)square];

            occupied &= mask;

            int attackIndex = GetAttackIndex(occupied, magic.Magic, magic.IndexSize);

            return(_bishopAttacks[(int)square][attackIndex]);
        }
        public FormLink Link(object entityId)
        {
            var id = Convert.ToInt32(entityId.ToString());

            return(MagicDetails.Button(id));
        }