//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Sunday, April 08, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class RoleStrongerConfig : ConfigBase { public int id { get ; private set ; } public int funcType { get ; private set ; } public string Name { get ; private set; } public int funcId { get ; private set ; } public int LV { get ; private set ; } public int[] conditions; public int targetValue { get ; private set ; } public int recommendFightPower { get ; private set ; } public int strongerFightPower { get ; private set ; } public string title { get ; private set; } public string desc { get ; private set; } public string Icon { get ; private set; } public int OpenUI { get ; private set ; } public override string getKey() { return id.ToString(); } public override void Parse() { try { id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; funcType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; Name = rawContents[2].Trim(); funcId=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; LV=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; string[] conditionsStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); conditions = new int[conditionsStringArray.Length]; for (int i=0;i