| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年7月7日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | public partial class TreeLVConfig : ConfigBase<int, TreeLVConfig> |
| | | { |
| | | |
| | | public int TreeLV; |
| | | public int LVUPNeedMoney; |
| | | public int LVUPNeedTime; |
| | | public int[] EquipColorRateList; |
| | | public string ExAwardItemRateList; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | | int key = GetKey(_key); |
| | | return key; |
| | | } |
| | | |
| | | public override void LoadConfig(string input) |
| | | { |
| | | try { |
| | | string[] tables = input.Split('\t'); |
| | | int.TryParse(tables[0],out TreeLV); |
| | | |
| | | int.TryParse(tables[1],out LVUPNeedMoney); |
| | | |
| | | int.TryParse(tables[2],out LVUPNeedTime); |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年7月26日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class TreeLVConfig : ConfigBase<int, TreeLVConfig>
|
| | | {
|
| | |
|
| | | public int TreeLV;
|
| | | public int LVUPNeedMoney;
|
| | | public int LVUPNeedTime;
|
| | | public int[] EquipColorRateList;
|
| | | public string ExAwardItemRateList;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out TreeLV); |
| | |
|
| | | int.TryParse(tables[1],out LVUPNeedMoney); |
| | |
|
| | | int.TryParse(tables[2],out LVUPNeedTime); |
| | |
|
| | | if (tables[3].Contains("[")) |
| | | { |
| | | EquipColorRateList = JsonMapper.ToObject<int[]>(tables[3]); |
| | |
| | | { |
| | | int.TryParse(EquipColorRateListStringArray[i],out EquipColorRateList[i]); |
| | | } |
| | | } |
| | | |
| | | ExAwardItemRateList = tables[4]; |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | Debug.LogError(exception); |
| | | } |
| | | } |
| | | } |
| | | }
|
| | |
|
| | | ExAwardItemRateList = tables[4];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|