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:
34
SVSim.BattleEngine/Engine/Cute/PCPlatformSTEAM.cs
Normal file
34
SVSim.BattleEngine/Engine/Cute/PCPlatformSTEAM.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using LitJson;
|
||||
|
||||
namespace Cute;
|
||||
|
||||
public class PCPlatformSTEAM : PCPlatform
|
||||
{
|
||||
protected PaymentPCStartParamsSTEAM _postParams = new PaymentPCStartParamsSTEAM();
|
||||
|
||||
public static string State { get; private set; }
|
||||
|
||||
public static string Country { get; private set; }
|
||||
|
||||
public static string Currency { get; private set; }
|
||||
|
||||
public static string Status { get; private set; }
|
||||
|
||||
public override PaymentPCStartParams SetParameter(string productId, bool isAlertAgree, bool isAlertActive)
|
||||
{
|
||||
_postParams.product_id = productId;
|
||||
_postParams.price = PaymentPC.GetInstance().ProductPriceList[productId];
|
||||
_postParams.ip_address = Toolbox.DeviceManager.GetIpAddress();
|
||||
_postParams.isalertagree = (isAlertAgree ? 1 : 0);
|
||||
_postParams.isalertactive = (isAlertActive ? 1 : 0);
|
||||
return _postParams;
|
||||
}
|
||||
|
||||
public override void Parse(JsonData response)
|
||||
{
|
||||
State = response["steam_user_info"]["state"].ToString();
|
||||
Country = response["steam_user_info"]["country"].ToString();
|
||||
Currency = response["steam_user_info"]["currency"].ToString();
|
||||
Status = response["steam_user_info"]["status"].ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user