Esempio n. 1
0
    private void HandleClick()
    {
        SpellbookEntryClickedEventArgs args = new SpellbookEntryClickedEventArgs();

        args.index = index;
        SpellbookEntryClickedHandler handler = EntryClicked;

        if (handler != null)
        {
            handler(this, args);
        }
    }
Esempio n. 2
0
 /// <summary>
 /// Called by the spellbook UI to set the currently selected spell
 /// </summary>
 private void SetSpell(object sender, SpellbookEntryClickedEventArgs args)
 {
     currentSpell = args.index;
 }