public void CastInvokerElement(InvokerElementAbility ability) { if (currentInvokerElements.Count == 3) { currentInvokerElements.RemoveAt(0); } currentInvokerElements.Insert(currentInvokerElements.Count, ability); }
public int CountInvokerElement(InvokerElementAbility ability) { int count = 0; for (int i = 0; i < currentInvokerElements.Count; i++) { if (currentInvokerElements[i] == ability) { count++; } } return(count); }
public bool HasInvokerElement(InvokerElementAbility ability) => currentInvokerElements.Contains(ability);