备份CatanBuilding瘦身独立工程
This commit is contained in:
119
Assets/Scripts/Tables/IAPItemList.cs
Normal file
119
Assets/Scripts/Tables/IAPItemList.cs
Normal file
@@ -0,0 +1,119 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
using Bright.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class IAPItemList : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public IAPItemList(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["Product_Id1"].IsString) { throw new SerializationException(); } ProductId1 = _json["Product_Id1"]; }
|
||||
{ if(!_json["Trade_Group"].IsString) { throw new SerializationException(); } TradeGroup = _json["Trade_Group"]; }
|
||||
{ if(!_json["Trade_Type"].IsString) { throw new SerializationException(); } TradeType = _json["Trade_Type"]; }
|
||||
{ if(!_json["Trade_Name"].IsString) { throw new SerializationException(); } TradeName = _json["Trade_Name"]; }
|
||||
{ if(!_json["Payment_Amount"].IsNumber) { throw new SerializationException(); } PaymentAmount = _json["Payment_Amount"]; }
|
||||
{ if(!_json["VIPPoint"].IsNumber) { throw new SerializationException(); } VIPPoint = _json["VIPPoint"]; }
|
||||
{ if(!_json["Cost_Token"].IsNumber) { throw new SerializationException(); } CostToken = _json["Cost_Token"]; }
|
||||
{ if(!_json["LuckAddToCategory"].IsNumber) { throw new SerializationException(); } LuckAddToCategory = _json["LuckAddToCategory"]; }
|
||||
{ if(!_json["LuckAddToFish"].IsNumber) { throw new SerializationException(); } LuckAddToFish = _json["LuckAddToFish"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public IAPItemList(int ID, string Product_Id1, string Trade_Group, string Trade_Type, string Trade_Name, float Payment_Amount, int VIPPoint, int Cost_Token, float LuckAddToCategory, float LuckAddToFish )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.ProductId1 = Product_Id1;
|
||||
this.TradeGroup = Trade_Group;
|
||||
this.TradeType = Trade_Type;
|
||||
this.TradeName = Trade_Name;
|
||||
this.PaymentAmount = Payment_Amount;
|
||||
this.VIPPoint = VIPPoint;
|
||||
this.CostToken = Cost_Token;
|
||||
this.LuckAddToCategory = LuckAddToCategory;
|
||||
this.LuckAddToFish = LuckAddToFish;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static IAPItemList DeserializeIAPItemList(JSONNode _json)
|
||||
{
|
||||
return new IAPItemList(_json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// #IAP的ID与商店(苹果、谷歌)对应。礼包等付费内容调用IAP的ID
|
||||
/// </summary>
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// "google_"+序号ID
|
||||
/// </summary>
|
||||
public string ProductId1 { get; private set; }
|
||||
/// <summary>
|
||||
/// 统计数据使用,不对玩家展示
|
||||
/// </summary>
|
||||
public string TradeGroup { get; private set; }
|
||||
/// <summary>
|
||||
/// 统计数据使用,不对玩家展示
|
||||
/// </summary>
|
||||
public string TradeType { get; private set; }
|
||||
/// <summary>
|
||||
/// 统计数据使用,不对玩家展示
|
||||
/// </summary>
|
||||
public string TradeName { get; private set; }
|
||||
/// <summary>
|
||||
/// (默认美元)
|
||||
/// </summary>
|
||||
public float PaymentAmount { get; private set; }
|
||||
public int VIPPoint { get; private set; }
|
||||
public int CostToken { get; private set; }
|
||||
/// <summary>
|
||||
/// 10美元 = 1条鱼
|
||||
/// </summary>
|
||||
public float LuckAddToCategory { get; private set; }
|
||||
public float LuckAddToFish { get; private set; }
|
||||
|
||||
public const int __ID__ = 457548969;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "ProductId1:" + ProductId1 + ","
|
||||
+ "TradeGroup:" + TradeGroup + ","
|
||||
+ "TradeType:" + TradeType + ","
|
||||
+ "TradeName:" + TradeName + ","
|
||||
+ "PaymentAmount:" + PaymentAmount + ","
|
||||
+ "VIPPoint:" + VIPPoint + ","
|
||||
+ "CostToken:" + CostToken + ","
|
||||
+ "LuckAddToCategory:" + LuckAddToCategory + ","
|
||||
+ "LuckAddToFish:" + LuckAddToFish + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user