Esempio n. 1
0
	public override void LoadFromXml( XmlNode _node)
	{
		base.LoadFromXml( _node);
	
		if( _node.Attributes["Value"] != null)
			msg = ( QuestTutorialMsg)Enum.Parse( typeof( QuestTutorialMsg), _node.Attributes["Value"].Value, true);
	}
Esempio n. 2
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;
			}
		}
	}
Esempio n. 3
0
	public override void Initilize()
	{
		base.Initilize();
		msg = QuestTutorialMsg.NONE;
	}
Esempio n. 4
0
	public void Initilize()
	{
		type = TutorialStepType.NONE;
		nextMsg = QuestTutorialMsg.NONE;
		objectTarget = null;
		uiPath = string.Empty;
		fingerType = TutorialFingerType.TOP;
		doubleTouch = false;
		listOption = new List<int>();
	}
Esempio n. 5
0
	public QuestTutorialMsgInfo( QuestTutorialMsg _message)
	{
		message = _message;
		value = 0;
	}
Esempio n. 6
0
	public QuestTutorialMsgInfo( QuestTutorialMsg _message, int _value)
	{
		message = _message;
		value = _value;
	}
Esempio n. 7
0
	public QuestTutorialMsgInfo()
	{
		message = global::QuestTutorialMsg.NONE;
		value = 0;
	}
Esempio n. 8
0
	public bool HaveNextMsgInNowTutorial( QuestTutorialMsg _msg)
	{
		if( nowSelectTutorial == null)
			return false;

		return nowSelectTutorial.listNextStepMsg.Contains( _msg);
	}