Exemplo n.º 1
0
Arquivo: Node.cs Projeto: Miltt/Maze
        private Node SwitchNodeProp(int index, Node value = null)
        {
            switch (index)
            {
                case 0:
                    return ReturnNodeProp(ref _up, value);
                case 1:
                    return ReturnNodeProp(ref _right, value);
                case 2:
                    return ReturnNodeProp(ref _down, value);
                case 3:
                    return ReturnNodeProp(ref _left, value);
            }

            return null;
        }
Exemplo n.º 2
0
 public ParentInfo(Node parent, int index)
 {
     _parent = parent;
     _index = index;
 }
Exemplo n.º 3
0
Arquivo: Node.cs Projeto: Miltt/Maze
 private Node ReturnNodeProp(ref Node prop, Node value = null)
 {
     if (value == null)
     {
         return prop;
     }
     else
     {
         prop = value;
         return null;
     }
 }