| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, July 12, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class DienstgradConfig : ConfigBase {
|
| | |
|
| | | public int ID { get ; private set ; }
|
| | | public string Name { get ; private set; } |
| | | public int Type { get ; private set ; }
|
| | | public int Prescription { get ; private set ; }
|
| | | public string OutTimeDesc { get ; private set; } |
| | | public int ID;
|
| | | public string Name;
|
| | | public int Type;
|
| | | public int Prescription;
|
| | | public string OutTimeDesc;
|
| | | public int[] LightType;
|
| | | public int[] LightAttribute;
|
| | | public string Image { get ; private set; } |
| | | public string Content { get ; private set; } |
| | | public string Image;
|
| | | public string Content;
|
| | | public int[] Skills;
|
| | | public int gotoId { get ; private set ; }
|
| | | public int missionId { get ; private set ; }
|
| | | |
| | | public int gotoId;
|
| | | public int missionId;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | } |
| | | |
| | | public override void Parse() { |
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out ID);
|
| | |
|
| | | Name = rawContents[1].Trim();
|
| | | Name = contents[1];
|
| | |
|
| | | Type=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out Type);
|
| | |
|
| | | Prescription=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out Prescription);
|
| | |
|
| | | OutTimeDesc = rawContents[4].Trim();
|
| | | OutTimeDesc = contents[4];
|
| | |
|
| | | string[] LightTypeStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var LightTypeStringArray = contents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightType = new int[LightTypeStringArray.Length]; |
| | | for (int i=0;i<LightTypeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LightTypeStringArray[i],out LightType[i]); |
| | | }
|
| | |
|
| | | string[] LightAttributeStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var LightAttributeStringArray = contents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttribute = new int[LightAttributeStringArray.Length]; |
| | | for (int i=0;i<LightAttributeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LightAttributeStringArray[i],out LightAttribute[i]); |
| | | }
|
| | |
|
| | | Image = rawContents[7].Trim();
|
| | | Image = contents[7];
|
| | |
|
| | | Content = rawContents[8].Trim();
|
| | | Content = contents[8];
|
| | |
|
| | | string[] SkillsStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillsStringArray = contents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | Skills = new int[SkillsStringArray.Length]; |
| | | for (int i=0;i<SkillsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(SkillsStringArray[i],out Skills[i]); |
| | | }
|
| | |
|
| | | gotoId=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; |
| | | int.TryParse(contents[10],out gotoId);
|
| | |
|
| | | missionId=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; |
| | | int.TryParse(contents[11],out missionId);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|