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