Beispiel #1
0
        public void RemoveMark(Mark mark)
        {
            if (mark == null)
            {
                throw new ArgumentNullException(nameof(mark));
            }

            var markToRemove = Marks.Find(m => m.DictionaryId == m.Dictionary.Id && m.Id == mark.Id);

            if (markToRemove == null)
            {
                return;
            }

            Marks.Remove(markToRemove);
        }
Beispiel #2
0
 public bool ShouldTriggerOnMove(short cellId)
 {
     return(Marks.Find(x => x.BreakMove && x.ContainsCell(cellId)) != null);
 }