Exemple #1
0
	public Tbl_Skill_Record(BinaryReader br)// : base(_element)
	{
		m_Index = br.ReadInt32();
		m_SkillName_Index = br.ReadInt32();
		m_Description_Index = br.ReadInt32();
		m_SkillName_Print = (eSkillNamePrint)br.ReadInt32();
		m_SkillReset = (eSkillReset)br.ReadInt32();
		m_nSkillResetCost = br.ReadInt32();
		m_SkillAutoTarget = (eSkillAutoTarget)br.ReadInt32();
		m_Skill_Icon = br.ReadString();
		
		m_Class = (eCLASS)br.ReadInt32();
		m_Skill_Type = (eSKILL_TYPE)br.ReadInt32();
		m_Skill_TargetType = (eSkill_TargetType)br.ReadInt32();		
		m_SkillIcon_Enable_Target = (eSkillIcon_Enable_Target)br.ReadInt32();
		m_SkillIcon_Enable_Condition = (eSkillIcon_Enable_Condition)br.ReadInt32();
		m_SkillIcon_Enable_ConditionValue = br.ReadInt32();
		
		m_Command_Type = (eCommand_Type)br.ReadInt32();
		m_CommandPicking_Type = (eCommandPicking_Type)br.ReadInt32();
		m_Attack_Direction = (eATTACK_DIRECTION)br.ReadInt32();
		m_CoolTimeGroup = br.ReadInt32();
		m_DisableInPvP = (eDisableInPvP)br.ReadInt32();
		m_DisableInRaid = (eDisableInRaid)br.ReadInt32();
        m_DisableInField = (eDisableInRaid)br.ReadInt32();
		m_DisableInInDun = (eDisableInInDun)br.ReadInt32();
		
		for(int i=1; i<=AsTableManager.sSkillLevelPotencyCount; ++i)
		{
			ePotency_Enable_Target check_target = (ePotency_Enable_Target)br.ReadInt32();
			ePotency_Enable_Condition check_condition = (ePotency_Enable_Condition)br.ReadInt32();
			float check_conditionValue = br.ReadSingle();
			ePotency_Enable_Target check_target2 = (ePotency_Enable_Target)br.ReadInt32();
			ePotency_Enable_Condition check_condition2 = (ePotency_Enable_Condition)br.ReadInt32();
			float check_conditionValue2 = br.ReadSingle();
			ePotency_Type type = (ePotency_Type)br.ReadInt32();
			ePotency_Target target = (ePotency_Target)br.ReadInt32();
			ePotency_DurationType duration = (ePotency_DurationType)br.ReadInt32();
			ePotency_Attribute attribute = (ePotency_Attribute)br.ReadInt32();
			ePotency_Element element = ePotency_Element.NONE;
			string buff = br.ReadString();
			int buffToolTipIdx = br.ReadInt32();
			
			Tbl_Skill_Potency potency = 
				new Tbl_Skill_Potency(check_target, check_condition, check_conditionValue,
					check_target2, check_condition2, check_conditionValue2,
					type, target, duration, attribute, element, buff, buffToolTipIdx);
			
			m_listSkillPotency.Add(potency);
		}
	}
Exemple #2
0
	public Tbl_Skill_Record(XmlElement _element)// : base(_element)
	{
		try{
			XmlNode node = (XmlElement)_element;
			
			SetValue(ref m_Index, node, "Index");
			SetValue(ref m_SkillName_Index, node, "SkillName_Index");
			SetValue(ref m_Description_Index, node, "Description_Index");
			int print = 0; SetValue(ref print, node, "SkillName_Print");
			switch(print)
			{
			case 0: m_SkillName_Print = eSkillNamePrint.None; break;
			case 1: m_SkillName_Print = eSkillNamePrint.Print; break;
			case 2: m_SkillName_Print = eSkillNamePrint.Negative; break;
			}
			SetValue(ref m_SkillReset, node, "SkillReset");
			
			string strSkillResetCost = ""; SetValue(ref strSkillResetCost, node, "SkillResetCost");
			if( strSkillResetCost == "NONE" )	m_nSkillResetCost = -1;
			else								m_nSkillResetCost = int.Parse( strSkillResetCost );
			
			SetValue( ref m_SkillAutoTarget, node, "AutoTarget");
			SetValue(ref m_Skill_Icon, node, "Skill_Icon");
			SetValue<eCLASS>(ref m_Class, node, "Class");
			SetValue<eSKILL_TYPE>(ref m_Skill_Type, node, "Skill_Type");
			SetValue<eSkill_TargetType>(ref m_Skill_TargetType, node, "Skill_TargetType");
			SetValue<eSkillIcon_Enable_Target>(ref m_SkillIcon_Enable_Target, node, "SkillIcon_Enable_Target");
			SetValue<eSkillIcon_Enable_Condition>(ref m_SkillIcon_Enable_Condition, node, "SkillIcon_Enable_Condition");
			SetValue(ref m_SkillIcon_Enable_ConditionValue, node, "SkillIcon_Enable_ConditionValue");
			
			SetValue<eCommand_Type>(ref m_Command_Type, node, "Command_Type");
			SetValue<eCommandPicking_Type>(ref m_CommandPicking_Type, node, "CommandPicking_Type");
			SetValue<eATTACK_DIRECTION>(ref m_Attack_Direction, node, "Attack_Direction");
			SetValue(ref m_CoolTimeGroup, node, "CoolTimeGroup");
			
			SetValue<eDisableInPvP>(ref m_DisableInPvP, node, "DisableInPvP");
			SetValue<eDisableInRaid>(ref m_DisableInRaid, node, "DisableInRaid");
            SetValue<eDisableInRaid>(ref m_DisableInField, node, "DisableInField");
			SetValue<eDisableInInDun>(ref m_DisableInInDun, node, "DisableInInDun");
			
			
			for(int i=1; i<=AsTableManager.sSkillPotencyCount; ++i)
			{
				ePotency_Enable_Target check_target = ePotency_Enable_Target.NONE;
				ePotency_Enable_Condition check_condition = ePotency_Enable_Condition.NONE;
				float check_conditionValue = 0;
				ePotency_Enable_Target check_target2 = ePotency_Enable_Target.NONE;
				ePotency_Enable_Condition check_condition2 = ePotency_Enable_Condition.NONE;
				float check_conditionValue2 = 0;
				ePotency_Type type = ePotency_Type.NONE;
				ePotency_Target target = ePotency_Target.NONE;
				ePotency_DurationType duration = ePotency_DurationType.NONE;
				ePotency_Attribute attribute = ePotency_Attribute.NONE;
				ePotency_Element element = ePotency_Element.NONE;
				string buff = "";
				int iBuffTooltipIdx = 0;
				
				SetValue<ePotency_Enable_Target>(ref check_target, node, "Potency" + i + "_Enable_Target");
				SetValue<ePotency_Enable_Condition>(ref check_condition, node, "Potency" + i + "_Enable_Condition");
				SetValue(ref check_conditionValue, node, "Potency" + i + "_Enable_ConditionValue");
				SetValue<ePotency_Enable_Target>(ref check_target2, node, "Potency" + i + "_Enable_Target2");
				SetValue<ePotency_Enable_Condition>(ref check_condition2, node, "Potency" + i + "_Enable_Condition2");
				SetValue(ref check_conditionValue2, node, "Potency" + i + "_Enable_ConditionValue2");
				
				SetValue<ePotency_Type>(ref type, node, "Potency" + i + "_Type");
				SetValue<ePotency_Target>(ref target, node, "Potency" + i + "_Target");
				SetValue<ePotency_DurationType>(ref duration, node, "Potency" + i + "_DurationType");
				SetValue<ePotency_Attribute>(ref attribute, node, "Potency" + i + "_Attribute");
//				SetValue<ePotency_Element>(ref element, node, "Potency" + i + "_Element");
				SetValue(ref buff, node, "Potency" + i + "_BuffIcon");
				SetValue(ref iBuffTooltipIdx, node, "BuffTooltip" + i + "_Index");
				
				Tbl_Skill_Potency potency = new Tbl_Skill_Potency(check_target, check_condition, check_conditionValue,
					check_target2, check_condition2, check_conditionValue2,
					type, target, duration, attribute, element, buff, iBuffTooltipIdx);
				
				m_listSkillPotency.Add(potency);
			}
		}
		catch(System.Exception e)
		{
			Debug.LogError(e);//
		}
	}
	public Tbl_MonsterSkill_Record(XmlElement _element)// : base(_element)
	{
		try{
			XmlNode node = (XmlElement)_element;
			
			SetValue(ref m_Index, node, "Index");
			SetValue(ref m_Des_SkillName, node, "Des_SkillName");
			SetValue(ref m_SkillName_Index, node, "SkillName_Index");
			int print = 0; SetValue(ref print, node, "SkillName_Print");
			switch(print)
			{
			case 0: m_SkillName_Print = eSkillNamePrint.None; break;
			case 1: m_SkillName_Print = eSkillNamePrint.Print; break;
			case 2: m_SkillName_Print = eSkillNamePrint.Negative; break;
			}
			
			SetValue(ref m_Class, node, "Class");
			SetValue<eSKILL_TYPE>(ref m_Skill_Type, node, "Skill_Type");
			
			for(int i=1; i<=AsTableManager.sMonsterSkillPotencyCount; ++i)
			{
				if(node["Potency" + i + "_Type"].InnerText == "NONE")
					continue;
				
				ePotency_Enable_Target check_target = ePotency_Enable_Target.NONE;
				ePotency_Enable_Condition check_condition = ePotency_Enable_Condition.NONE;
				float check_conditionValue = 0;
				ePotency_Enable_Target check_target2 = ePotency_Enable_Target.NONE;
				ePotency_Enable_Condition check_condition2 = ePotency_Enable_Condition.NONE;
				float check_conditionValue2 = 0;
				ePotency_Type type = ePotency_Type.NONE;
				ePotency_Target target = ePotency_Target.NONE;
				ePotency_DurationType duration = ePotency_DurationType.NONE;
				ePotency_Attribute attribute = ePotency_Attribute.NONE;
				ePotency_Element element = ePotency_Element.NONE;
				string buff = "";
				int iBuffTooltipIdx = 0;
				
				SetValue<ePotency_Enable_Target>(ref check_target, node, "Potency" + i + "_Enable_Target");
				SetValue<ePotency_Enable_Condition>(ref check_condition, node, "Potency" + i + "_Enable_Condition");
				SetValue(ref check_conditionValue, node, "Potency" + i + "_Enable_ConditionValue");
				SetValue<ePotency_Enable_Target>(ref check_target2, node, "Potency" + i + "_Enable_Target2");
				SetValue<ePotency_Enable_Condition>(ref check_condition2, node, "Potency" + i + "_Enable_Condition2");
				SetValue(ref check_conditionValue2, node, "Potency" + i + "_Enable_ConditionValue2");
				SetValue<ePotency_Type>(ref type, node, "Potency" + i + "_Type");
				SetValue<ePotency_Target>(ref target, node, "Potency" + i + "_Target");
				SetValue<ePotency_DurationType>(ref duration, node, "Potency" + i + "_DurationType");
				SetValue<ePotency_Attribute>(ref attribute, node, "Potency" + i + "_Attribute");
//				SetValue<ePotency_Element>(ref element, node, "Potency" + i + "_Element");
				SetValue(ref buff, node, "Potency" + i + "_BuffIcon");
				SetValue(ref iBuffTooltipIdx, node, "BuffTooltip" + i + "_Index");
				
				Tbl_Skill_Potency potency = new Tbl_Skill_Potency(check_target, check_condition, check_conditionValue,
					check_target2, check_condition2, check_conditionValue2,
					type, target, duration, attribute, element, buff, iBuffTooltipIdx);
				
				m_listSkillPotency.Add(potency);
			}
		}
		catch(System.Exception e)
		{
			Debug.LogError("Error while [" + m_CurrentColumn + "] parsing" + "\n" + e);
		}
	}
Exemple #4
0
	void SetSkillData(Tbl_MonsterSkill_Record _record)
	{
		if(_record != null && _record.SkillName_Index != int.MaxValue)
		{
			m_SkillName = AsTableManager.Instance.GetTbl_String(_record.SkillName_Index);
			m_SkillNamePrint = _record.SkillName_Print;
		}
		else
		{
//			Debug.LogWarning("BuffElement::SetSkillData: there is no [" + _record.Index + "] skill record's skill name.");
		}
	}
	public Tbl_MonsterSkill_Record(BinaryReader br)
	{
		m_Index = br.ReadInt32();
		m_Des_SkillName = br.ReadString();
		m_SkillName_Index = br.ReadInt32();		
		
		int print = 0; 
		print = br.ReadInt32();
		switch(print)
		{
		case 0: m_SkillName_Print = eSkillNamePrint.None; break;
		case 1: m_SkillName_Print = eSkillNamePrint.Print; break;
		case 2: m_SkillName_Print = eSkillNamePrint.Negative; break;
		}		
		
		m_Class = br.ReadString();
		m_Skill_Type = (eSKILL_TYPE)br.ReadInt32();
		
		int icount = br.ReadInt32();
		for(int i=0; i<icount; ++i)
		{
			ePotency_Enable_Target check_target = (ePotency_Enable_Target)br.ReadInt32();
			ePotency_Enable_Condition check_condition = (ePotency_Enable_Condition)br.ReadInt32();
			float check_conditionValue = br.ReadSingle();
			ePotency_Enable_Target check_target2 = (ePotency_Enable_Target)br.ReadInt32();
			ePotency_Enable_Condition check_condition2 = (ePotency_Enable_Condition)br.ReadInt32();
			float check_conditionValue2 = br.ReadSingle();
			ePotency_Type type = (ePotency_Type)br.ReadInt32();
			ePotency_Target target = (ePotency_Target)br.ReadInt32();
			ePotency_DurationType duration = (ePotency_DurationType)br.ReadInt32();
			ePotency_Attribute attribute = (ePotency_Attribute)br.ReadInt32();
			
			string buff = br.ReadString();
			int iBuffTooltipIdx = br.ReadInt32();
			
			Tbl_Skill_Potency potency = new Tbl_Skill_Potency(check_target, check_condition, check_conditionValue,
				check_target2, check_condition2, check_conditionValue2,
				type, target, duration, attribute, ePotency_Element.NONE, buff, iBuffTooltipIdx);
				
			m_listSkillPotency.Add(potency);
		}
	}