| | |
| | | using System; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | |
| | | public partial class DienstgradConfig |
| | | { |
| | | |
| | | public readonly int ID;
|
| | | public readonly string Name;
|
| | | public readonly int Type;
|
| | | public readonly int Prescription;
|
| | | public readonly string OutTimeDesc;
|
| | | public readonly int[] LightType;
|
| | | public readonly int[] LightAttribute;
|
| | | public readonly string Image;
|
| | | public readonly string Content;
|
| | | public readonly int[] Skills;
|
| | | public readonly int gotoId;
|
| | | public readonly int missionId;
|
| | | public readonly int ID; |
| | | public readonly string Name; |
| | | public readonly int Type; |
| | | public readonly int Prescription; |
| | | public readonly string OutTimeDesc; |
| | | public readonly int[] LightType; |
| | | public readonly int[] LightAttribute; |
| | | public readonly string Image; |
| | | public readonly string Content; |
| | | public readonly int[] Skills; |
| | | public readonly int gotoId; |
| | | public readonly int missionId; |
| | | public readonly int order; |
| | | |
| | | public DienstgradConfig() |
| | |
| | | { |
| | | var tables = input.Split('\t'); |
| | | |
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | Name = tables[1];
|
| | |
|
| | | int.TryParse(tables[2],out Type); |
| | |
|
| | | int.TryParse(tables[3],out Prescription); |
| | |
|
| | | OutTimeDesc = tables[4];
|
| | |
|
| | | int.TryParse(tables[0],out ID); |
| | | |
| | | Name = tables[1]; |
| | | |
| | | int.TryParse(tables[2],out Type); |
| | | |
| | | int.TryParse(tables[3],out Prescription); |
| | | |
| | | OutTimeDesc = tables[4]; |
| | | |
| | | string[] LightTypeStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightType = new int[LightTypeStringArray.Length]; |
| | | for (int i=0;i<LightTypeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LightTypeStringArray[i],out LightType[i]); |
| | | }
|
| | |
|
| | | } |
| | | |
| | | string[] LightAttributeStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | LightAttribute = new int[LightAttributeStringArray.Length]; |
| | | for (int i=0;i<LightAttributeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(LightAttributeStringArray[i],out LightAttribute[i]); |
| | | }
|
| | |
|
| | | Image = tables[7];
|
| | |
|
| | | Content = tables[8];
|
| | |
|
| | | } |
| | | |
| | | Image = tables[7]; |
| | | |
| | | Content = tables[8]; |
| | | |
| | | string[] SkillsStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | Skills = new int[SkillsStringArray.Length]; |
| | | for (int i=0;i<SkillsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(SkillsStringArray[i],out Skills[i]); |
| | | }
|
| | |
|
| | | int.TryParse(tables[10],out gotoId); |
| | |
|
| | | int.TryParse(tables[11],out missionId); |
| | |
|
| | | } |
| | | |
| | | int.TryParse(tables[10],out gotoId); |
| | | |
| | | int.TryParse(tables[11],out missionId); |
| | | |
| | | int.TryParse(tables[12],out order); |
| | | } |
| | | catch (Exception ex) |