Example #1
0
	public void LoadFromXml( XmlNode _node)
	{
		// init
		Initilize();

		foreach ( XmlAttribute attribute in _node.Attributes)
		{
			switch ( attribute.Name)
			{
			case "Type":
				type = ( TutorialStepType)Enum.Parse( typeof( TutorialStepType), attribute.Value, true);
				break;
			case "Path":
				uiPath = attribute.Value;
				break;
			case "NextMsg":
				nextMsg = ( QuestTutorialMsg)Enum.Parse( typeof( QuestTutorialMsg), attribute.Value, true);
				break;
			case "PtType":
				fingerType = ( TutorialFingerType)Enum.Parse( typeof( TutorialFingerType), attribute.Value, true);
				break;
			case "DoublePt":
				doubleTouch = System.Convert.ToInt32( attribute.Value) != 0 ? true : false;
				break;
			case "Value0":
			case "Value1":
			case "Value2":
				listOption.Add( System.Convert.ToInt32( attribute.Value));
				break;
			}
		}
	}
Example #2
0
	public void Initilize()
	{
		type = TutorialStepType.NONE;
		nextMsg = QuestTutorialMsg.NONE;
		objectTarget = null;
		uiPath = string.Empty;
		fingerType = TutorialFingerType.TOP;
		doubleTouch = false;
		listOption = new List<int>();
	}