| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年5月22日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | public partial class GetItemWaysConfig : ConfigBase<int, GetItemWaysConfig> |
| | | { |
| | | |
| | | public int ID; |
| | | public string name; |
| | | public string Icon; |
| | | public string Text; |
| | | public int OpenpanelId; |
| | | public int FuncOpenId; |
| | | public int ActiveType; |
| | | public int customize; |
| | | |
| | | 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 ID); |
| | | |
| | | name = tables[1]; |
| | | |
| | | Icon = tables[2]; |
| | | |
| | | Text = tables[3]; |
| | | |
| | | int.TryParse(tables[4],out OpenpanelId); |
| | | |
| | | int.TryParse(tables[5],out FuncOpenId); |
| | | |
| | | int.TryParse(tables[6],out ActiveType); |
| | | |
| | | int.TryParse(tables[7],out customize); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | Debug.LogError(exception); |
| | | } |
| | | } |
| | | } |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年7月26日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class GetItemWaysConfig : ConfigBase<int, GetItemWaysConfig>
|
| | | {
|
| | |
|
| | | public int ID;
|
| | | public string name;
|
| | | public string Icon;
|
| | | public string Text;
|
| | | public int OpenpanelId;
|
| | | public int FuncOpenId;
|
| | | public int ActiveType;
|
| | | public int customize;
|
| | |
|
| | | 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 ID); |
| | |
|
| | | name = tables[1];
|
| | |
|
| | | Icon = tables[2];
|
| | |
|
| | | Text = tables[3];
|
| | |
|
| | | int.TryParse(tables[4],out OpenpanelId); |
| | |
|
| | | int.TryParse(tables[5],out FuncOpenId); |
| | |
|
| | | int.TryParse(tables[6],out ActiveType); |
| | |
|
| | | int.TryParse(tables[7],out customize); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|