Exemple #1
0
 public void Remove(SpellHint hint)
 {
     if (!_hints.Contains(hint))
     {
         throw new InvalidOperationException("Hints do not contain this hint!");
     }
     _hints.Remove(hint);
 }
Exemple #2
0
 public void Add(SpellHint hint)
 {
     if (_hints.Contains(hint))
     {
         throw new InvalidOperationException("Hints already contains this hint!");
     }
     _hints.Add(hint);
 }
Exemple #3
0
 public bool Contains(SpellHint hint)
 {
     return(_hints.Contains(hint));
 }