You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6 KiB
C#

4 years ago
using System;
using Game;
using PaymentGameApi;
using Qoo;
using Qoo.Game;
namespace PaymentStoreApi
{
// Token: 0x020000E6 RID: 230
public class PaymentSave
{
// Token: 0x06000636 RID: 1590 RVA: 0x00019C60 File Offset: 0x00017E60
public void Save(string szProductId)
{
DatabaseProductID databaseProductID = new DatabaseProductID();
CHAR_ID charaIdForProductId = databaseProductID.GetCharaIdForProductId(szProductId);
DatabaseProductID.CheckType checkTypeForProductId = databaseProductID.GetCheckTypeForProductId(szProductId);
if (charaIdForProductId == CHAR_ID.NIGHTMARE)
{
switch (checkTypeForProductId)
{
case DatabaseProductID.CheckType.ROUTE_VOICE:
SysData.SetPayFull(true, true);
break;
case DatabaseProductID.CheckType.ROUTE:
SysData.SetPayFullRoute(true);
break;
case DatabaseProductID.CheckType.VOICE:
SysData.SetPayFullVoice(true);
break;
}
Debug.Print("セーブデータ:フルパック " + checkTypeForProductId);
}
else
{
switch (checkTypeForProductId)
{
case DatabaseProductID.CheckType.ROUTE_VOICE:
SysData.SetPay(charaIdForProductId, true, true);
break;
case DatabaseProductID.CheckType.ROUTE:
SysData.SetPayRoute(charaIdForProductId, true);
break;
case DatabaseProductID.CheckType.VOICE:
SysData.SetPayVoice(charaIdForProductId, true);
break;
}
Debug.Print(string.Concat(new object[]
{
"セーブデータ:Chara:",
charaIdForProductId,
":",
checkTypeForProductId
}));
}
SaveLoadManager.SaveSystem();
}
}
}