| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, January 16, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class RuleConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; } |
| | | public string Title { get ; private set; } |
| | | public string Description { get ; private set; } |
| | | public int ID; |
| | | public string Title; |
| | | public string Description; |
| | | |
| | | 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); |
| | | |
| | | Title = rawContents[1].Trim(); |
| | | Title = contents[1]; |
| | | |
| | | Description = rawContents[2].Trim(); |
| | | Description = contents[2]; |
| | | } |
| | | catch (Exception ex) |
| | | { |