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:
43
SVSim.BattleEngine/Engine/Payment.cs
Normal file
43
SVSim.BattleEngine/Engine/Payment.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using Wizard;
|
||||
|
||||
public static class Payment
|
||||
{
|
||||
private static bool initialized;
|
||||
|
||||
public static void initialize(PaymentImpl callback, string productKey)
|
||||
{
|
||||
PaymentImpl.GetInstance().paymentUI.StartLoading();
|
||||
_ = initialized;
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
public static void finalize()
|
||||
{
|
||||
if (initialized)
|
||||
{
|
||||
initialized = false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void purchaseProduct(string productId, PaymentBase.RefundWarningType refundWarningType)
|
||||
{
|
||||
RefundWarningDialog.Start(refundWarningType, delegate
|
||||
{
|
||||
PaymentImpl.GetInstance().paymentUI.StartLoading(useTimeCount: true);
|
||||
});
|
||||
}
|
||||
|
||||
public static void getProductList(string[] productIds)
|
||||
{
|
||||
PaymentImpl.GetInstance().paymentUI.StartLoading(useTimeCount: true, forProductListInit: true);
|
||||
}
|
||||
|
||||
public static void consumePurchase(string[] productIds, string orderId)
|
||||
{
|
||||
PaymentImpl.GetInstance().paymentUI.StartLoading(useTimeCount: true);
|
||||
}
|
||||
|
||||
public static void UseDebugLog(bool useDebugLog)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user