| | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class DamageNumConfig : ConfigBase { |
| | | public partial class DamageNumConfig : ConfigBase {
|
| | |
|
| | | public string id { get ; private set; } |
| | | public int realm { get ; private set ; }
|
| | | public int prefix { get ; private set ; }
|
| | | public int plus { get ; private set ; }
|
| | | public int minus { get ; private set ; }
|
| | | public int[] nums;
|
| | | |
| | | public string id { get ; private set; } |
| | | public int realm { get ; private set ; } |
| | | public int prefix { get ; private set ; } |
| | | public int plus { get ; private set ; } |
| | | public int minus { get ; private set ; } |
| | | public int[] nums; |
| | | |
| | | public override string getKey() |
| | | { |
| | | return id.ToString(); |
| | | public override string getKey()
|
| | | {
|
| | | return id.ToString();
|
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | id = rawContents[0].Trim(); |
| | | |
| | | realm=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | |
| | | prefix=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | |
| | | plus=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | minus=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | |
| | | try
|
| | | {
|
| | | id = rawContents[0].Trim();
|
| | | |
| | | realm=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | |
| | | prefix=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | |
| | | plus=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | minus=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | |
| | | string[] numsStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | nums = new int[numsStringArray.Length]; |
| | | for (int i=0;i<numsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(numsStringArray[i],out nums[i]); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | }
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |