public void SpellCasted(Spell spell, SpellSlotCaster spellSlot) { spellQueue.Add(spell); spellSlotQueue.Add(spellSlot); UpdateSpellSlots(); }
void GiveSpellToSlot(SpellSlotCaster spellSlot) { Spell nextSpell = GetNextSpell(); if (nextSpell != null) { spellSlot.Initialize(nextSpell); spellSlotQueue.Remove(spellSlot); } }