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:
42
SVSim.BattleEngine/Engine/Cute/PaymentPCStartTask.cs
Normal file
42
SVSim.BattleEngine/Engine/Cute/PaymentPCStartTask.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
namespace Cute;
|
||||
|
||||
public class PaymentPCStartTask : NetworkTask
|
||||
{
|
||||
protected PCPlatform _platform;
|
||||
|
||||
protected CuteNetworkDefine.ApiType _apiType = CuteNetworkDefine.ApiType.PaymentPCStart;
|
||||
|
||||
public PaymentBase.RefundWarningType NeedRefundWarningType { get; private set; }
|
||||
|
||||
public override string Url => $"{CustomPreference.GetApplicationServerURL()}{CuteNetworkDefine.ApiUrlList[_apiType]}";
|
||||
|
||||
public PaymentPCStartTask()
|
||||
{
|
||||
_platform = new PCPlatformSTEAM();
|
||||
}
|
||||
|
||||
public void SetParameter(string ProductId, bool isAlertAgree, bool isAlertActive)
|
||||
{
|
||||
base.Params = _platform.SetParameter(ProductId, isAlertAgree, isAlertActive);
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
if (base.ResponseData["data"].Count > 0)
|
||||
{
|
||||
_platform.Parse(base.ResponseData["data"]);
|
||||
NeedRefundWarningType = (PaymentBase.RefundWarningType)base.ResponseData["data"]["refund_penalty_type"].ToInt();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
public PCPlatform getPCPlatform()
|
||||
{
|
||||
return _platform;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user