| | |
| | | //-------------------------------------------------------- |
| | | // [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 EmojiPackConfig : ConfigBase<int, EmojiPackConfig> |
| | | { |
| | | |
| | | public int EmojiPackID; |
| | | public string Name; |
| | | public int UnlockDefault; |
| | | public int ExpireMinutes; |
| | | public string Image; |
| | | public int SortNum; |
| | | public int EffectID; |
| | | public int[][] UnlockNeedItemList; |
| | | public string Descriptive; |
| | | |
| | | 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 EmojiPackID); |
| | | |
| | | Name = tables[1]; |
| | | |
| | | int.TryParse(tables[2],out UnlockDefault); |
| | | |
| | | int.TryParse(tables[3],out ExpireMinutes); |
| | | |
| | | Image = tables[4]; |
| | | |
| | | int.TryParse(tables[5],out SortNum); |
| | | |
| | | int.TryParse(tables[6],out EffectID); |
| | | |
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[7].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | Descriptive = tables[8]; |
| | | } |
| | | 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 EmojiPackConfig : ConfigBase<int, EmojiPackConfig>
|
| | | {
|
| | |
|
| | | public int EmojiPackID;
|
| | | public string Name;
|
| | | public int UnlockDefault;
|
| | | public int ExpireMinutes;
|
| | | public string Image;
|
| | | public int SortNum;
|
| | | public int EffectID;
|
| | | public int[][] UnlockNeedItemList;
|
| | | public string Descriptive;
|
| | |
|
| | | 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 EmojiPackID); |
| | |
|
| | | Name = tables[1];
|
| | |
|
| | | int.TryParse(tables[2],out UnlockDefault); |
| | |
|
| | | int.TryParse(tables[3],out ExpireMinutes); |
| | |
|
| | | Image = tables[4];
|
| | |
|
| | | int.TryParse(tables[5],out SortNum); |
| | |
|
| | | int.TryParse(tables[6],out EffectID); |
| | |
|
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[7].Replace("(", "[").Replace(")", "]")); |
| | |
|
| | | Descriptive = tables[8];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|