| | |
| | | using System; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | |
| | | public partial class OpenServerActivityConfig |
| | | { |
| | | |
| | | public readonly int id;
|
| | | public readonly string icon;
|
| | | public readonly int[] childTypes;
|
| | | public readonly int id; |
| | | public readonly string icon; |
| | | public readonly int[] childTypes; |
| | | public readonly int order; |
| | | |
| | | public OpenServerActivityConfig() |
| | |
| | | { |
| | | var tables = input.Split('\t'); |
| | | |
| | | int.TryParse(tables[0],out id); |
| | |
|
| | | icon = tables[1];
|
| | |
|
| | | int.TryParse(tables[0],out id); |
| | | |
| | | icon = tables[1]; |
| | | |
| | | string[] childTypesStringArray = tables[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | childTypes = new int[childTypesStringArray.Length]; |
| | | for (int i=0;i<childTypesStringArray.Length;i++) |
| | | { |
| | | int.TryParse(childTypesStringArray[i],out childTypes[i]); |
| | | }
|
| | |
|
| | | } |
| | | |
| | | int.TryParse(tables[3],out order); |
| | | } |
| | | catch (Exception ex) |