ElementNode.SetTargetSpell C# (CSharp) Method

SetTargetSpell() public method

Sets the target spell.
public SetTargetSpell ( TargetSpell, &targetSpell, Queue elements ) : void
targetSpell TargetSpell, Target spell.
elements Queue Elements.
return void
	public void SetTargetSpell(ref TargetSpell targetSpell,Queue<Element> elements){
		if (elements.Count == 0)
			return;

        Element element = elements.Dequeue ();
        Logger.Trace(element._name);

        if (!_nodes.ContainsKey (element))
			return;

		if (_nodes [element]._nodes == null) {
			_nodes [element]= new SpellNode(element);
		}

		_nodes [element].SetTargetSpell (ref targetSpell, elements);
	}