Пример #1
0
 public void Accept(AbilityVisitor visitor)
 {
     foreach (Ability ability in this.Abilities)
     {
         ability.Accept(visitor);
     }
 }
Пример #2
0
 public virtual void Accept(AbilityVisitor visitor) =>
 visitor.Visit(this);