feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
59
SVSim.BattleEngine/Engine/NtDataTranslate.cs
Normal file
59
SVSim.BattleEngine/Engine/NtDataTranslate.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
public class NtDataTranslate : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private TitleUI _titleUI;
|
||||
|
||||
public GameObject BtnTranslate;
|
||||
|
||||
public NtDataTranslateInput InputObj;
|
||||
|
||||
public UILabel TxtTranslate;
|
||||
|
||||
public static NtDataTranslate Instance;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
initUI();
|
||||
requestData();
|
||||
}
|
||||
|
||||
private void initUI()
|
||||
{
|
||||
Instance = this;
|
||||
initEventListener();
|
||||
}
|
||||
|
||||
private void initEventListener()
|
||||
{
|
||||
UIEventListener.Get(BtnTranslate).onClick = onClickTranslate;
|
||||
}
|
||||
|
||||
private void requestData()
|
||||
{
|
||||
NtDataTranslateManager.GetInstance().GetTranslateInfo();
|
||||
}
|
||||
|
||||
private void onClickTranslate(GameObject btn)
|
||||
{
|
||||
if (!_titleUI.IsEnableClickButton())
|
||||
{
|
||||
return;
|
||||
}
|
||||
GetDataTranslateTask task = new GetDataTranslateTask();
|
||||
StartCoroutine(Toolbox.NetworkManager.Connect(task, delegate
|
||||
{
|
||||
NtDataTranslateManager instance = NtDataTranslateManager.GetInstance();
|
||||
if (instance.isTranslate)
|
||||
{
|
||||
instance.ShowRebind();
|
||||
}
|
||||
else
|
||||
{
|
||||
instance.ShowMainNotice(instance.HongKongMacaoUserConfirm);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user