//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, June 29, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class TreasureConfig : ConfigBase { public int ID { get ; private set ; } public int Category { get ; private set ; } public int PreTreasure { get ; private set ; } public string Name { get ; private set; } public string Icon { get ; private set; } public string NameIcon { get ; private set; } public string TreasureNameIcon { get ; private set; } public string Model { get ; private set; } public string SourceDescription { get ; private set; } public string Story { get ; private set; } public string IndexTitle { get ; private set; } public string StoryName { get ; private set; } public int RequirementTotal { get ; private set ; } public int[] Achievements; public int MapId { get ; private set ; } public int LineId { get ; private set ; } public int ChallengeLevel { get ; private set ; } public int[] Potentials; public string NeedItem { get ; private set; } public int EffectID { get ; private set ; } public string[] Verse; public int ShowNetGotEffect { get ; private set ; } public int PreferredStage { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Category=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; PreTreasure=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; Name = rawContents[3].Trim(); Icon = rawContents[4].Trim(); NameIcon = rawContents[5].Trim(); TreasureNameIcon = rawContents[6].Trim(); Model = rawContents[7].Trim(); SourceDescription = rawContents[8].Trim(); Story = rawContents[9].Trim(); IndexTitle = rawContents[10].Trim(); StoryName = rawContents[11].Trim(); RequirementTotal=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; string[] AchievementsStringArray = rawContents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); Achievements = new int[AchievementsStringArray.Length]; for (int i=0;i