예제 #1
0
        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);
        }
예제 #2
0
 protected virtual void OnUsedSpell(Spells.ASpell spell)
 {
     UsedSpell?.Invoke(this, spell);
 }