Exemplo n.º 1
0
	//go to next node
	public void NextNode()
	{
		for(int i = 0; i < Data.Count; i++)
		{
			if(current.LinkData == Data[i].Passage)
			{
				current = Data[i];
			}
		}
	}
Exemplo n.º 2
0
 //go to next node
 public void NextNode()
 {
     for (int i = 0; i < Data.Count; i++)
     {
         if (current.LinkData == Data[i].Passage)
         {
             current = Data[i];
         }
     }
 }
Exemplo n.º 3
0
	public TwineData1(List <string> data, string[] split)
	{
		for(int i = 0; i < data.Count; i++)
		{
			TwineNode1 twineNode = new TwineNode1(data[i], split);
			Data.Add(twineNode);
			
			if(i == 0)
			{
				current = twineNode;
			}
		}
	}
Exemplo n.º 4
0
    public TwineData1(List <string> data, string[] split)
    {
        for (int i = 0; i < data.Count; i++)
        {
            TwineNode1 twineNode = new TwineNode1(data[i], split);
            Data.Add(twineNode);

            if (i == 0)
            {
                current = twineNode;
            }
        }
    }
Exemplo n.º 5
0
	//go to specific node
	public void NextNode(string link)
	{
		for(int i = 0; i < Data.Count; i++)
		{
            /*try
            {
                if (Int32.Parse(link) == Int32.Parse(Data[i].Passage))
                {
					current = Data[i];
                    break;
                }
            }
			catch
			{

			}*/
			if(link.Trim() == Data[i].Passage.Trim())
			{
				current = Data[i];
				break;
			}
		}
	}
Exemplo n.º 6
0
 //go to specific node
 public void NextNode(string link)
 {
     for (int i = 0; i < Data.Count; i++)
     {
         /*try
          * {
          *  if (Int32.Parse(link) == Int32.Parse(Data[i].Passage))
          *  {
          *                          current = Data[i];
          *      break;
          *  }
          * }
          *          catch
          *          {
          *
          *          }*/
         if (link.Trim() == Data[i].Passage.Trim())
         {
             current = Data[i];
             break;
         }
     }
 }