public static Spell Cast(ISpellHost boundTo, SpellScript script) { if (script == null) { throw new ArgumentNullException("script"); } Spell spell = new Spell(); spell.boundTo = boundTo; spell.script = script; spell.InitThreads(); return(spell); }
public void Release() { this.boundTo = null; }