Пример #1
0
        public void Add(Counter counter)
        {
            counter.ModifyStrenght(_strenght);
              _counters.Add(counter);

              Publish(new CounterAddedEvent(counter, _owningCard));
        }
Пример #2
0
        public void Remove(Counter counter)
        {
            if (_counters.Remove(counter))
              {
            counter.Remove();
              }

              Publish(new CounterRemovedEvent(counter, _owningCard));
        }