private void OnUsedSpell(object source, Spells.ASpell spell) // subscriber 2 { string message = source.ToString() + " used " + spell.ToString(); Console.SetCursorPosition((Console.WindowWidth - message.Length) / 2, Console.WindowHeight / 2 + 1 + (_writeTop ? 0 : 10)); Console.WriteLine(message); }
protected virtual void OnUsedSpell(Spells.ASpell spell) { UsedSpell?.Invoke(this, spell); }