fix:1、删除不用的功能资源和代码

This commit is contained in:
2026-06-24 14:26:29 +08:00
parent 65a797d384
commit 7846543d1b
127 changed files with 195 additions and 45578 deletions
@@ -1,24 +0,0 @@
using System.Collections.Generic;
using System.Linq;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class GameConfigModel : ConfigModel<GameConfigModel, GameBoard>
{
public Dictionary<int, List<GameBoard>> game_conf = new Dictionary<int, List<GameBoard>>();
public GameConfigModel(string key) : base(key)
{
}
}
public class GameBoard
{
public int level;
public string board;
public string stacked;
public int item_type;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 82b36e3bf10fb56479a37bccbfe52b95
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,20 +0,0 @@
using System.Collections.Generic;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class OnlineRewardsModel : ConfigModel<OnlineRewardsModel, OnlineRewards>
{
public OnlineRewardsModel(string key) : base(key)
{
}
}
public class OnlineRewards
{
public int OnlineLimitNum;
public int OnlineCountTime;
public int OnlineAward;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: cb0103dccee904bae947c46c5918fc51
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,31 +0,0 @@
using System.Collections.Generic;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class RankHourRewardsModel : ConfigModel<RankHourRewardsModel, RankRewards>
{
public RankHourRewardsModel(string key) : base(key)
{
}
}
public class RankDayRewardsModel : ConfigModel<RankDayRewardsModel, RankRewards>
{
public RankDayRewardsModel(string key) : base(key)
{
}
}
public class RankWeekRewardsModel : ConfigModel<RankWeekRewardsModel, RankRewards>
{
public RankWeekRewardsModel(string key) : base(key)
{
}
}
public class RankRewards
{
public int id;
public int rank;
public int award;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: acddf7fb7f0c4d043844876d76f23e35
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -75,43 +75,9 @@ namespace IgnoreOPS
public string user_name;
public string amount;
}
public class FAQRuleModel : ConfigModel<FAQRuleModel, FAQRule>
{
public FAQRuleModel(string key) : base(key)
{
}
}
public class FAQRule
{
public int id;
public string Rule;
public string Information1;
public string Information2;
public string Information3;
public string Information4;
}
public class FAQRuleModel1 : ConfigModel<FAQRuleModel1, FAQRule>
{
public FAQRuleModel1(string key) : base(key)
{
}
}
public class MessageBoardModel : ConfigModel<MessageBoardModel, MessageBoard>
{
public MessageBoardModel(string key) : base(key)
{
}
}
public class MessageBoardModel1 : ConfigModel<MessageBoardModel1, MessageBoard>
{
public MessageBoardModel1(string key) : base(key)
{
}
}
public class MessageBoard
{
public int id;
@@ -8,7 +8,7 @@ namespace FGUI.tixian
public partial class com_redeem_code : GComponent
{
public GTextField text_title;
public GButton btn_close;
public GButton btn_close1;
public GTextField lab_mn2;
public GTextField lab_ticket;
public GTextField lab_code;
@@ -27,7 +27,7 @@ namespace FGUI.tixian
base.ConstructFromXML(xml);
text_title = (GTextField)GetChildAt(1);
btn_close = (GButton)GetChildAt(2);
btn_close1 = (GButton)GetChildAt(2);
lab_mn2 = (GTextField)GetChildAt(6);
lab_ticket = (GTextField)GetChildAt(14);
lab_code = (GTextField)GetChildAt(16);
+2 -83
View File
@@ -1690,61 +1690,7 @@ namespace ChillConnect
#endif
GameHelper.ShowTips("Copy Succeed");
}
public static void ShowPaidPack()
{
if(!GameHelper.IsGiftSwitch()) return;
if (Random.Range(0, 100) < GetCommonModel().TurnOffPackRate)
{
if (!SaveData.GetSaveObject().is_get_packreward)
{
Debug.Log("kkkkkkkkkkkkkk2222" + GetCommonModel().TurnOffPackRate);
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open);
}
else
if (!SaveData.GetSaveObject().is_get_ThreeDaysGift)
{
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);//在每个打开的界面的onclose方法中调用CallShowTurn方法
}
else if (SaveData.GetSaveObject().failed_pack_time > GameHelper.GetNowTime())
{
float progress = showResurgence();
// if (string.IsNullOrWhiteSpace(jsonstr))
// {
// // CallShowTurn();
// // return;
// }
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ResurgenceUI_Open, progress);
}
else if (!SaveData.GetSaveObject().is_get_battlepass)
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PassViewUI_Open);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PassunlockUI_Open);
}
else if (!SaveData.GetSaveObject().have_slot)
{
if (SaveData.GetSaveObject().addview_off_time > GameHelper.GetNowTime())
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddViewoffUI_Open, true);
}
else
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuyslotUI_Open, true);
}
}
else
{
CallShowTurn();//调用事件
}
}
else
{
CallShowTurn();//调用事件
}
}
public static void CallShowTurn()
{
ShowTurn += ShowTurnOffReward;
@@ -1753,34 +1699,7 @@ namespace ChillConnect
}
public static event Action ShowTurn;
private static string jsonstr = "";
static float showResurgence()
{
jsonstr = "";
var json = DataManager.Instance.LoadData(DataKeys.LevelData, string.Empty);
if (!string.IsNullOrEmpty(json))
{
jsonstr = json;
}
if (string.IsNullOrEmpty(jsonstr))
return 0;
List<List<Card_item>> card_item_list = JsonConvert.DeserializeObject<List<List<Card_item>>>(jsonstr);
int surplus_item = 0;
for (int i = 0; i < card_item_list.Count; i++)
{
for (int j = 0; j < card_item_list[i].Count; j++)
{
// if (card_item_list[i][j].sheep_card.IsDestroyed() || card_item_list[i][j].sheep_card == null) continue;
surplus_item++;
}
}
return 1 - (float)surplus_item / (SaveData.GetSaveObject().all_card_numbers * 3);
}
public static void ShowTurnOffReward()
{
Debug.Log("chansghidakai");