| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Friday, January 04, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class GatherSoulPropertyConfig : ConfigBase { |
| | | |
| | | public int AttrType { get ; private set ; }
|
| | | public string AttrInfo1 { get ; private set; } |
| | | public string AttrInfo2 { get ; private set; } |
| | | public string AttrInfo3 { get ; private set; } |
| | | public string AttrInfo4 { get ; private set; } |
| | | public string AttrInfo5 { get ; private set; } |
| | | public string sort { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return AttrType.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | AttrType=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class GatherSoulPropertyConfig : ConfigBase {
|
| | |
|
| | | public int AttrType;
|
| | | public string AttrInfo1;
|
| | | public string AttrInfo2;
|
| | | public string AttrInfo3;
|
| | | public string AttrInfo4;
|
| | | public string AttrInfo5;
|
| | | public string sort;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return AttrType.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out AttrType);
|
| | |
|
| | | AttrInfo1 = rawContents[1].Trim();
|
| | | AttrInfo1 = contents[1];
|
| | |
|
| | | AttrInfo2 = rawContents[2].Trim();
|
| | | AttrInfo2 = contents[2];
|
| | |
|
| | | AttrInfo3 = rawContents[3].Trim();
|
| | | AttrInfo3 = contents[3];
|
| | |
|
| | | AttrInfo4 = rawContents[4].Trim();
|
| | | AttrInfo4 = contents[4];
|
| | |
|
| | | AttrInfo5 = rawContents[5].Trim();
|
| | | AttrInfo5 = contents[5];
|
| | |
|
| | | sort = rawContents[6].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | sort = contents[6];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|