| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: Fish |
| | | // [ Date ]: Wednesday, May 15, 2019 |
| | | // [ Date ]: Thursday, June 13, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | { |
| | | |
| | | public readonly int ID; |
| | | public readonly int SuiteLv; |
| | | public readonly int CancelUseLimit; |
| | | public readonly int[] LegendAttrID; |
| | | public readonly int[] LegendAttrValue; |
| | | public readonly int[] OutOfPrintAttr; |
| | | public readonly int[] OutOfPrintAttrValue; |
| | | |
| | | public AppointItemConfig() |
| | | { |
| | |
| | | |
| | | int.TryParse(tables[0],out ID); |
| | | |
| | | int.TryParse(tables[1],out SuiteLv); |
| | | |
| | | int.TryParse(tables[2],out CancelUseLimit); |
| | | |
| | | string[] LegendAttrIDStringArray = tables[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LegendAttrIDStringArray = tables[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LegendAttrID = new int[LegendAttrIDStringArray.Length]; |
| | | for (int i=0;i<LegendAttrIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LegendAttrIDStringArray[i],out LegendAttrID[i]); |
| | | } |
| | | |
| | | string[] LegendAttrValueStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] LegendAttrValueStringArray = tables[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LegendAttrValue = new int[LegendAttrValueStringArray.Length]; |
| | | for (int i=0;i<LegendAttrValueStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LegendAttrValueStringArray[i],out LegendAttrValue[i]); |
| | | } |
| | | |
| | | string[] OutOfPrintAttrStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | OutOfPrintAttr = new int[OutOfPrintAttrStringArray.Length]; |
| | | for (int i=0;i<OutOfPrintAttrStringArray.Length;i++) |
| | | { |
| | | int.TryParse(OutOfPrintAttrStringArray[i],out OutOfPrintAttr[i]); |
| | | } |
| | | |
| | | string[] OutOfPrintAttrValueStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | OutOfPrintAttrValue = new int[OutOfPrintAttrValueStringArray.Length]; |
| | | for (int i=0;i<OutOfPrintAttrValueStringArray.Length;i++) |
| | | { |
| | | int.TryParse(OutOfPrintAttrValueStringArray[i],out OutOfPrintAttrValue[i]); |
| | | } |
| | | } |
| | | catch (Exception ex) |