Пример #1
0
        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);
        }
Пример #2
0
 public void Release()
 {
     this.boundTo = null;
 }