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