cull(engine-cleanup): pass-8 phase-2 cascade round 3 after MyPageItemHome stub

This commit is contained in:
gamer147
2026-07-03 22:01:31 -04:00
parent e9b112d083
commit 17b436d33d
19 changed files with 1 additions and 393 deletions

View File

@@ -59,8 +59,6 @@ public class ArenaColosseum : ArenaEntryDataBase
private bool _isRankMatching;
public Format DeckFormat { get; set; }
public eRule Rule { get; set; }
public int ChaosNum { get; set; }

View File

@@ -7,8 +7,6 @@ namespace Cute;
public class BootNetwork : MonoBehaviour
{
public bool IsDoneGameStartCheck { get; set; }
private void Awake()
{
Object.DontDestroyOnLoad(base.gameObject);

View File

@@ -33,12 +33,7 @@ public static class CuteNetworkDefine
public enum ACCOUNT_TYPE
{
NONE,
GOOGLE_PLAY,
GAME_CENTER,
FACEBOOK,
APPLE_ID
}
NONE }
public enum CONNECT_TYPE
{

View File

@@ -1,107 +0,0 @@
using System.Collections.Generic;
using LitJson;
using UnityEngine;
using Wizard;
namespace Cute;
public class GameStartCheckTask : NetworkTask
{
private class CheckParams : PostParams
{
}
private CuteNetworkDefine.ApiType apiType = CuteNetworkDefine.ApiType.GameStartCheck;
public static bool IsSocialAccountDataTransNotSetAndTutorialClear = false;
public static bool IsTutorialClear = false;
public static List<CuteNetworkDefine.ACCOUNT_TYPE> IsSocialAccountDataTransSet;
public static bool IsSetTransitionPassword;
public static bool HasAppliedForAccountDeletion { get; private set; } = false;
public static string RefundUrl { get; private set; } = string.Empty;
public override string Url => $"{CustomPreference.GetApplicationServerURL()}{CuteNetworkDefine.ApiUrlList[apiType]}";
public GameStartCheckTask()
{
if (Toolbox.BootNetwork != null)
{
Toolbox.BootNetwork.IsDoneGameStartCheck = false;
}
IsSocialAccountDataTransSet = new List<CuteNetworkDefine.ACCOUNT_TYPE>();
}
protected override int Parse()
{
int num = base.Parse();
if (num != 1)
{
return num;
}
IsSocialAccountDataTransNotSetAndTutorialClear = false;
IsSocialAccountDataTransSet.Clear();
IsSetTransitionPassword = false;
RefundUrl = string.Empty;
if (base.ResponseData["data"].Keys.Contains("transition_account_data"))
{
JsonData jsonData = base.ResponseData["data"]["transition_account_data"];
for (int i = 0; i < jsonData.Count; i++)
{
if (jsonData[i]["social_account_type"].ToInt() == 1)
{
IsSocialAccountDataTransSet.Add(CuteNetworkDefine.ACCOUNT_TYPE.GOOGLE_PLAY);
}
else if (jsonData[i]["social_account_type"].ToInt() == 2)
{
IsSocialAccountDataTransSet.Add(CuteNetworkDefine.ACCOUNT_TYPE.GAME_CENTER);
}
else if (jsonData[i]["social_account_type"].ToInt() == 3)
{
IsSocialAccountDataTransSet.Add(CuteNetworkDefine.ACCOUNT_TYPE.FACEBOOK);
}
else if (jsonData[i]["social_account_type"].ToInt() == 6)
{
IsSocialAccountDataTransSet.Add(CuteNetworkDefine.ACCOUNT_TYPE.APPLE_ID);
}
}
if (base.ResponseData["data"]["now_tutorial_step"].ToInt() == 100)
{
IsTutorialClear = true;
}
if (jsonData.Count == 0 && base.ResponseData["data"]["now_tutorial_step"].ToInt() == 100)
{
IsSocialAccountDataTransNotSetAndTutorialClear = true;
}
}
if (base.ResponseData["data"].Keys.Contains("rewrite_viewer_id"))
{
/* Pre-Phase-5 chunk 39: rewrite_viewer_id is a client-only Cute path; dead headless */
}
if (base.ResponseData["data"].Keys.Contains("is_set_transition_password"))
{
IsSetTransitionPassword = base.ResponseData["data"]["is_set_transition_password"].ToBoolean();
}
HasAppliedForAccountDeletion = base.ResponseData["data"].Keys.Contains("account_delete_reservation_status");
ParseAgreementData(base.ResponseData);
if (base.ResponseData["data"].Keys.Contains("refund_url"))
{
RefundUrl = base.ResponseData["data"]["refund_url"].ToString();
}
return num;
}
private void ParseAgreementData(JsonData responseData)
{
PlayerStaticData._tosAgreementState = (PlayerStaticData.AgreementState)responseData["data"]["tos_state"].ToInt();
PlayerStaticData._privacyPolicyAgreementState = (PlayerStaticData.AgreementState)responseData["data"]["policy_state"].ToInt();
PlayerStaticData.KorAuthorityAgreementState = (PlayerStaticData.AgreementState)responseData["data"]["kor_authority_state"].ToInt();
AcceptAgreementTask._tosId = responseData["data"]["tos_id"].ToInt();
AcceptAgreementTask._privacyPolicyId = responseData["data"]["policy_id"].ToInt();
AcceptAgreementTask.KorAuthorityId = responseData["data"]["kor_authority_id"].ToInt();
}
}

View File

@@ -10,8 +10,6 @@ public class Toolbox
public static BootSystem BootSystem;
public static BootNetwork BootNetwork;
public static NetworkManager NetworkManager;
public static AssetManager AssetManager;

View File

@@ -238,9 +238,6 @@ public class DialogBase : MonoBehaviour
[SerializeField]
private UIButton CloseButton;
[SerializeField]
private GameObject TitleObjs;
[SerializeField]
private UILabel titleLabel;
@@ -1099,12 +1096,6 @@ public class DialogBase : MonoBehaviour
backView.SetActive(inActive);
}
public void SetDialogAlpha(bool inDisp)
{
float alpha = (inDisp ? 1f : 0f);
base.gameObject.GetComponent<UIPanel>().alpha = alpha;
}
public void AttachToScrollView(Transform t)
{
t.parent = scrollView.transform;

View File

@@ -6,45 +6,7 @@ using Wizard;
public class MyPageCardPanel : MonoBehaviour
{
[SerializeField]
private bool enableMaintenanceCheck;
[SerializeField]
protected NetworkDefine.MAINTENANCE_TYPE maintenanceType;
[SerializeField]
private NetworkDefine.MAINTENANCE_TYPE[] _maintenanceTypeList;
private CardPanelMaintenancePlate _maintenancePlate;
private Vector3? _savedPosition;
public int Index { get; set; }
private void ShowMaintenance()
{
if (_maintenancePlate == null)
{
GameObject prefab = null; // Pre-Phase-5b: no PrefabMgr headless
_maintenancePlate = NGUITools.AddChild(base.gameObject, prefab).GetComponent<CardPanelMaintenancePlate>();
}
_maintenancePlate.gameObject.SetActive(value: true);
UIManager.SetObjectToGrey(base.gameObject, b: true);
UIManager.SetObjectToGrey(_maintenancePlate.gameObject, b: false);
}
private void HideMaintenance()
{
if (_maintenancePlate != null)
{
_maintenancePlate.gameObject.SetActive(value: false);
}
UIManager.SetObjectToGrey(base.gameObject, b: false);
}
public Vector3 SavePosition()
{
_savedPosition = base.transform.localPosition;
return _savedPosition.Value;
}
}

View File

@@ -15,35 +15,4 @@ public class MyPageCardPanelAnimation : MonoBehaviour
private UIPanel[] _panel;
private Vector3[] _defaultPosition;
public void UpdateCardPanelDefaultPosition(Vector3[] newPosition)
{
_defaultPosition = newPosition;
}
private void InitializePanel()
{
if (_panel == null)
{
_panel = new UIPanel[_cardPanel.Length];
_defaultPosition = new Vector3[_cardPanel.Length];
for (int i = 0; i < _cardPanel.Length; i++)
{
GameObject gameObject = _cardPanel[i];
_panel[i] = gameObject.GetComponent<UIPanel>();
_defaultPosition[i] = gameObject.transform.localPosition;
}
}
}
private void InitRandom()
{
_randomDir = new int[_cardPanel.Length];
_randomTimer = new float[_cardPanel.Length];
for (int i = 0; i < _cardPanel.Length; i++)
{
_randomDir[i] = (((double)Random.value > 0.5) ? 1 : (-1));
_randomTimer[i] = Random.Range(-0.3f, 0f);
}
}
}

View File

@@ -8,9 +8,4 @@ public class MyPageItem : MonoBehaviour
[SerializeField]
private MyPageCardPanelAnimation _cardMove;
[SerializeField]
private MyPageCardPanel[] _cardPanelList;
protected MyPageCardPanelAnimation CardAnimation => _cardMove;
}

View File

@@ -47,21 +47,6 @@ public class NtDataTranslateManager
};
}
public void ConfirmAgreement()
{
SystemText systemText = Wizard.Data.SystemText;
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
dialogBase.SetTitleLabel(systemText.Get("Account_0138"));
dialogBase.SetText(systemText.Get("Account_0139"));
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.BlueBtn_CancelBtn);
dialogBase.SetSize(DialogBase.Size.M);
dialogBase.SetButtonText(systemText.Get("Common_0001"), systemText.Get("Common_0002"));
dialogBase.onPushButton1 = delegate
{
TraditionalChineseOnlyAgreement();
};
}
public void TraditionalChineseOnlyAgreement()
{
SystemText systemText = Wizard.Data.SystemText;

View File

@@ -1,6 +0,0 @@
using UnityEngine;
public class OpenURLOnClick : MonoBehaviour
{
public UILabel ClickedUrlLabel { private get; set; }
}

View File

@@ -1,9 +0,0 @@
using System.Collections.Generic;
public class VoteData : HeaderData
{
public string tweet_url;
public string tweet_image;
}

View File

@@ -1,50 +0,0 @@
namespace Wizard;
public class AcceptAgreementTask : BaseTask
{
private class Param : BaseParam
{
}
public enum Type
{
TOS = 1,
PrivacyPolicy,
KorAuthority
}
private Type _agreedType;
public static int _tosId;
public static int _privacyPolicyId;
public static int KorAuthorityId;
public AcceptAgreementTask()
{
base.type = ApiType.Type.AcceptAgreement;
}
protected override int Parse()
{
int num = base.Parse();
if (num != 1)
{
return num;
}
switch (_agreedType)
{
case Type.TOS:
PlayerStaticData._tosAgreementState = PlayerStaticData.AgreementState.Agreed;
break;
case Type.PrivacyPolicy:
PlayerStaticData._privacyPolicyAgreementState = PlayerStaticData.AgreementState.Agreed;
break;
case Type.KorAuthority:
PlayerStaticData.KorAuthorityAgreementState = PlayerStaticData.AgreementState.Agreed;
break;
}
return num;
}
}

View File

@@ -1,55 +0,0 @@
using System;
using Cute;
using UnityEngine;
using Wizard.Dialog.Setting;
namespace Wizard;
public class AccountBase : MonoBehaviour
{
public enum DisplayType
{
NONE}
public enum TransitionOriginalScreen
{
}
[SerializeField]
private UIButton _appleButton;
[SerializeField]
private UIGrid ButtonGrid;
[SerializeField]
public NguiObjs BtnTransferCode;
[SerializeField]
public NguiObjs BtnGoogle;
[SerializeField]
public NguiObjs ButtonGetCode;
[SerializeField]
public UILabel CommonLabelTop;
[SerializeField]
public UILabel CommonLabelBtm;
private void Awake()
{
SetLabels();
BtnGoogle.gameObject.SetActive(value: false);
_appleButton.gameObject.SetActive(value: false);
ButtonGrid.repositionNow = true;
}
private void SetLabels()
{
SystemText systemText = Data.SystemText;
BtnTransferCode.labels[0].text = systemText.Get("Account_0094");
ButtonGetCode.labels[0].text = (GameStartCheckTask.IsSetTransitionPassword ? systemText.Get("Account_0100") : systemText.Get("Account_0099"));
CommonLabelTop.text = systemText.Get("Account_0095");
CommonLabelBtm.text = systemText.Get("Account_0073");
}
}

View File

@@ -45,8 +45,6 @@ public class Footer : UIBase
public UIButton[] _underButtons => underButtons;
public GameObject _footerMenuObj => m_footerMenuObj;
public int CurrentIndex { get; private set; }
private void Awake()

View File

@@ -21,8 +21,6 @@ public class Master
private List<BattleInformation> _roomChaosBattleInfo;
private List<BattleInformation> _colosseumChaosBattleInfo;
private List<List<BattleInformation>> _chaosBattleInfoList;
private Dictionary<int, List<int>> _classInfomationOrder;

View File

@@ -206,7 +206,6 @@ public class PlayerStaticData : MonoBehaviour
public enum AgreementState
{
Agreed,
NotAgree,
Reset
}

View File

@@ -1,43 +0,0 @@
using System;
using LitJson;
namespace Wizard;
public class SpeedChallengeInfo
{
public DateTime Begin { get; private set; }
public DateTime ApplyEnd { get; private set; }
public DateTime Announce { get; private set; }
public DateTime End { get; private set; }
public string Message { get; private set; }
public string ApplyUrl { get; private set; }
public SpeedChallengeInfo(JsonData data)
{
Parse(data);
}
private void Parse(JsonData data)
{
if (data.TryGetValue("schedule", out var value))
{
Begin = DateTime.Parse(value["begin_time"].ToString());
ApplyEnd = DateTime.Parse(value["apply_end_time"].ToString());
Announce = DateTime.Parse(value["announce_time"].ToString());
End = DateTime.Parse(value["end_time"].ToString());
}
if (data.TryGetValue("dialog_message", out var value2))
{
Message = value2.ToString().Replace("\\n", "\n");
}
if (data.TryGetValue("apply_url", out var value3))
{
ApplyUrl = value3.ToString();
}
}
}

View File

@@ -79,14 +79,6 @@ public class WebViewHelper
});
}
private string GetWebviewBaseQueryParameters()
{
string encodedViewerId = Certification.GetEncodedViewerId();
string encodedSessionId = Certification.GetEncodedSessionId();
string encodedShortUdid = Certification.GetEncodedShortUdid();
return "?lang=" + CustomPreference.GetTextLanguage() + "&HASH_ID=" + encodedViewerId + "&SID=" + encodedSessionId + "&SUDID=" + encodedShortUdid;
}
private string GetWebViewDialogTitleId(WebViewType webviewtype)
{
string result = null;