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