From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/Config/Configs/SuccessConfig.cs | 187 +++++++++++++++++++++++-----------------------
1 files changed, 95 insertions(+), 92 deletions(-)
diff --git a/Main/Config/Configs/SuccessConfig.cs b/Main/Config/Configs/SuccessConfig.cs
index 1c10cd5..24e8428 100644
--- a/Main/Config/Configs/SuccessConfig.cs
+++ b/Main/Config/Configs/SuccessConfig.cs
@@ -1,57 +1,60 @@
-锘�//--------------------------------------------------------
-// [Author]: YYL
-// [ Date ]: Friday, June 27, 2025
-//--------------------------------------------------------
-
-using System.Collections.Generic;
-using System.IO;
-using System.Threading;
-using System;
-using UnityEngine;
-using LitJson;
-
-public partial class SuccessConfig : ConfigBase<int, SuccessConfig>
-{
-
- public int ID;
- public int Type;
- public int Group;
- public int NeedCnt;
- public int[] Condition;
- public string Condition2;
- public int Condition3;
- public string AwardItemList;
- public string AwardItemList2;
- public string Money;
- public int Exp;
- public int[] AwardAttribute;
- public int RedPacketID;
- public int MagicWeaponID;
- public string MagicWeaponExp;
- public string Describe;
- public int NeedGoto;
- public int Jump;
- public int ReOrder;
- public int RealmPracticeID;
-
- 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);
-
- int.TryParse(tables[1],out Type);
-
- int.TryParse(tables[2],out Group);
-
- int.TryParse(tables[3],out NeedCnt);
-
+锘�//--------------------------------------------------------
+// [Author]: YYL
+// [ Date ]: 2025骞�8鏈�5鏃�
+//--------------------------------------------------------
+
+using System.Collections.Generic;
+using System;
+using UnityEngine;
+using LitJson;
+
+public partial class SuccessConfig : ConfigBase<int, SuccessConfig>
+{
+ static SuccessConfig()
+ {
+ // 璁块棶杩囬潤鎬佹瀯閫犲嚱鏁�
+ visit = true;
+ }
+
+ public int ID;
+ public int Type;
+ public int Group;
+ public int NeedCnt;
+ public int[] Condition;
+ public string Condition2;
+ public int Condition3;
+ public string AwardItemList;
+ public string AwardItemList2;
+ public string Money;
+ public int Exp;
+ public int[] AwardAttribute;
+ public int RedPacketID;
+ public int MagicWeaponID;
+ public string MagicWeaponExp;
+ public string Describe;
+ public int NeedGoto;
+ public int Jump;
+ public int ReOrder;
+ public int RealmPracticeID;
+
+ 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);
+
+ int.TryParse(tables[1],out Type);
+
+ int.TryParse(tables[2],out Group);
+
+ int.TryParse(tables[3],out NeedCnt);
+
if (tables[4].Contains("["))
{
Condition = JsonMapper.ToObject<int[]>(tables[4]);
@@ -64,20 +67,20 @@
{
int.TryParse(ConditionStringArray[i],out Condition[i]);
}
- }
-
- Condition2 = tables[5];
-
- int.TryParse(tables[6],out Condition3);
-
- AwardItemList = tables[7];
-
- AwardItemList2 = tables[8];
-
- Money = tables[9];
-
- int.TryParse(tables[10],out Exp);
-
+ }
+
+ Condition2 = tables[5];
+
+ int.TryParse(tables[6],out Condition3);
+
+ AwardItemList = tables[7];
+
+ AwardItemList2 = tables[8];
+
+ Money = tables[9];
+
+ int.TryParse(tables[10],out Exp);
+
if (tables[11].Contains("["))
{
AwardAttribute = JsonMapper.ToObject<int[]>(tables[11]);
@@ -90,27 +93,27 @@
{
int.TryParse(AwardAttributeStringArray[i],out AwardAttribute[i]);
}
- }
-
- int.TryParse(tables[12],out RedPacketID);
-
- int.TryParse(tables[13],out MagicWeaponID);
-
- MagicWeaponExp = tables[14];
-
- Describe = tables[15];
-
- int.TryParse(tables[16],out NeedGoto);
-
- int.TryParse(tables[17],out Jump);
-
- int.TryParse(tables[18],out ReOrder);
-
- int.TryParse(tables[19],out RealmPracticeID);
- }
- catch (Exception exception)
- {
- Debug.LogError(exception);
- }
- }
-}
+ }
+
+ int.TryParse(tables[12],out RedPacketID);
+
+ int.TryParse(tables[13],out MagicWeaponID);
+
+ MagicWeaponExp = tables[14];
+
+ Describe = tables[15];
+
+ int.TryParse(tables[16],out NeedGoto);
+
+ int.TryParse(tables[17],out Jump);
+
+ int.TryParse(tables[18],out ReOrder);
+
+ int.TryParse(tables[19],out RealmPracticeID);
+ }
+ catch (Exception exception)
+ {
+ Debug.LogError(exception);
+ }
+ }
+}
--
Gitblit v1.8.0