Files
SVSimServer/SVSim.BattleEngine/Engine/Cute/PCPlatformSTEAM.cs
gamer147 824309ec44 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.
2026-06-05 20:30:59 -04:00

35 lines
1.1 KiB
C#

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();
}
}