| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, November 27, 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 ; }
|
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class TreasureConfig : ConfigBase {
|
| | |
|
| | | public int ID;
|
| | | public int Category;
|
| | | public int PreTreasure;
|
| | | public string Name;
|
| | | public string Icon;
|
| | | public string NameIcon;
|
| | | public string TreasureNameIcon;
|
| | | public string Model;
|
| | | public string SourceDescription;
|
| | | public string Story;
|
| | | public string IndexTitle;
|
| | | public string StoryName;
|
| | | public int RequirementTotal;
|
| | | public int[] Achievements;
|
| | | public int MapId { get ; private set ; }
|
| | | public int LineId { get ; private set ; }
|
| | | public int ChallengeLevel { get ; private set ; }
|
| | | public int MapId;
|
| | | public int LineId;
|
| | | public int ChallengeLevel;
|
| | | public int[] Potentials;
|
| | | public int[] SkillPower;
|
| | | public string NeedItem { get ; private set; } |
| | | public int EffectID { get ; private set ; }
|
| | | public string NeedItem;
|
| | | public int EffectID;
|
| | | public string[] Verse;
|
| | | public int ShowNetGotEffect { get ; private set ; }
|
| | | public int PreferredStage { get ; private set ; }
|
| | | public int UIScale { get ; private set ; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return ID.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | public int ShowNetGotEffect;
|
| | | public int PreferredStage;
|
| | | public int UIScale;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out ID);
|
| | |
|
| | | Category=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out Category);
|
| | |
|
| | | PreTreasure=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out PreTreasure);
|
| | |
|
| | | Name = rawContents[3].Trim();
|
| | | Name = contents[3];
|
| | |
|
| | | Icon = rawContents[4].Trim();
|
| | | Icon = contents[4];
|
| | |
|
| | | NameIcon = rawContents[5].Trim();
|
| | | NameIcon = contents[5];
|
| | |
|
| | | TreasureNameIcon = rawContents[6].Trim();
|
| | | TreasureNameIcon = contents[6];
|
| | |
|
| | | Model = rawContents[7].Trim();
|
| | | Model = contents[7];
|
| | |
|
| | | SourceDescription = rawContents[8].Trim();
|
| | | SourceDescription = contents[8];
|
| | |
|
| | | Story = rawContents[9].Trim();
|
| | | Story = contents[9];
|
| | |
|
| | | IndexTitle = rawContents[10].Trim();
|
| | | IndexTitle = contents[10];
|
| | |
|
| | | StoryName = rawContents[11].Trim();
|
| | | StoryName = contents[11];
|
| | |
|
| | | RequirementTotal=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | int.TryParse(contents[12],out RequirementTotal);
|
| | |
|
| | | string[] AchievementsStringArray = rawContents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AchievementsStringArray = contents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | Achievements = new int[AchievementsStringArray.Length]; |
| | | for (int i=0;i<AchievementsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AchievementsStringArray[i],out Achievements[i]); |
| | | }
|
| | |
|
| | | MapId=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; |
| | | int.TryParse(contents[14],out MapId);
|
| | |
|
| | | LineId=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out LineId);
|
| | |
|
| | | ChallengeLevel=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | int.TryParse(contents[16],out ChallengeLevel);
|
| | |
|
| | | string[] PotentialsStringArray = rawContents[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var PotentialsStringArray = contents[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | Potentials = new int[PotentialsStringArray.Length]; |
| | | for (int i=0;i<PotentialsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(PotentialsStringArray[i],out Potentials[i]); |
| | | }
|
| | |
|
| | | string[] SkillPowerStringArray = rawContents[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillPowerStringArray = contents[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | SkillPower = new int[SkillPowerStringArray.Length]; |
| | | for (int i=0;i<SkillPowerStringArray.Length;i++) |
| | | { |
| | | int.TryParse(SkillPowerStringArray[i],out SkillPower[i]); |
| | | }
|
| | |
|
| | | NeedItem = rawContents[19].Trim();
|
| | | NeedItem = contents[19];
|
| | |
|
| | | EffectID=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; |
| | | int.TryParse(contents[20],out EffectID);
|
| | |
|
| | | Verse = rawContents[21].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | | Verse = contents[21].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | |
|
| | | ShowNetGotEffect=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0; |
| | | int.TryParse(contents[22],out ShowNetGotEffect);
|
| | |
|
| | | PreferredStage=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0; |
| | | int.TryParse(contents[23],out PreferredStage);
|
| | |
|
| | | UIScale=IsNumeric(rawContents[24]) ? int.Parse(rawContents[24]):0; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | int.TryParse(contents[24],out UIScale);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|