Files
SVSimServer/SVSim.BattleEngine/Engine/Cute/SignUpTask.cs
gamer147 957af3d1ec feat(battle-engine): full Unity/VFX/god-object shims + expanded copy closure (2570 files)
Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
2026-06-05 17:22:20 -04:00

73 lines
2.0 KiB
C#

using LitJson;
using UnityEngine;
namespace Cute;
public class SignUpTask : NetworkTask
{
private class LoginPostParams : PostParams
{
public string device_name = "";
public string client_type = "";
public string os_version = "";
public string app_version = "";
public string resource_version = "";
public string carrier = "";
}
private CuteNetworkDefine.ApiType apiType;
public override string Url => $"{CustomPreference.GetApplicationServerURL()}{CuteNetworkDefine.ApiUrlList[apiType]}";
public void SetParameter()
{
LoginPostParams loginPostParams = new LoginPostParams();
loginPostParams.device_name = Toolbox.DeviceManager.GetModelName();
loginPostParams.client_type = Toolbox.DeviceManager.GetDeviceType().ToString();
loginPostParams.os_version = Toolbox.DeviceManager.GetOsVersion();
loginPostParams.app_version = Toolbox.DeviceManager.GetAppVersionName();
loginPostParams.resource_version = "00000000";
loginPostParams.carrier = Toolbox.DeviceManager.GetCarrier();
base.Params = loginPostParams;
}
protected override int Parse()
{
JsonData jsonData = base.ResponseData["data_headers"];
resultCode = jsonData["result_code"].ToInt();
if (resultCode != 1)
{
return resultCode;
}
int viewerId = jsonData["viewer_id"].ToInt();
int shortUdid = jsonData["short_udid"].ToInt();
string text = jsonData["udid"].ToString();
if (Certification.Udid != text)
{
Debug.LogError("udid一致しません。不正のアクセスです。");
}
else
{
Certification.ViewerId = viewerId;
Certification.ShortUdid = shortUdid;
Certification.SessionId = "";
AdjustManager.ViewerIDEvent();
GameObject gameObject = GameObject.Find("OmotePlugin");
if (gameObject != null)
{
OmotePlugin component = gameObject.GetComponent<OmotePlugin>();
if (component != null)
{
component.SendConversion(text);
}
}
}
return resultCode;
}
}