ElementNode.GetSelfSpell C# (CSharp) Method

GetSelfSpell() public method

Gets the self spell.
public GetSelfSpell ( Queue elements ) : SelfSpell,
elements Queue Elements.
return SelfSpell,
	public SelfSpell GetSelfSpell(Queue<Element> elements){
		if(elements.Count==0)
			return null;

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

        if (!_nodes.ContainsKey (element))
			return null;
		
		if (_nodes [element]._nodes == null) {
			return null;
		}
		else {
			return _nodes [element].GetSelfSpell (elements);
		}
	}