Files
MinFt/Client/Assets/Scripts/Tables/ShopToken.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

101 lines
3.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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 ShopToken : Bright.Config.BeanBase
{
public JSONNode json;
public ShopToken(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
{ if(!_json["IAP_ID"].IsNumber) { throw new SerializationException(); } IAPID = _json["IAP_ID"]; }
{ if(!_json["TokenID"].IsNumber) { throw new SerializationException(); } TokenID = _json["TokenID"]; }
{ if(!_json["Number"].IsNumber) { throw new SerializationException(); } Number = _json["Number"]; }
{ if(!_json["Value_More"].IsNumber) { throw new SerializationException(); } ValueMore = _json["Value_More"]; }
{ if(!_json["FirstPurchase_Gift"].IsNumber) { throw new SerializationException(); } FirstPurchaseGift = _json["FirstPurchase_Gift"]; }
{ if(!_json["Product_Icon"].IsString) { throw new SerializationException(); } ProductIcon = _json["Product_Icon"]; }
{ if(!_json["Tag"].IsNumber) { throw new SerializationException(); } Tag = _json["Tag"]; }
json = _json;
PostInit();
}
public ShopToken(int ID, int Type, int IAP_ID, int TokenID, int Number, float Value_More, int FirstPurchase_Gift, string Product_Icon, int Tag )
{
this.ID = ID;
this.Type = Type;
this.IAPID = IAP_ID;
this.TokenID = TokenID;
this.Number = Number;
this.ValueMore = Value_More;
this.FirstPurchaseGift = FirstPurchase_Gift;
this.ProductIcon = Product_Icon;
this.Tag = Tag;
PostInit();
}
public static ShopToken DeserializeShopToken(JSONNode _json)
{
return new ShopToken(_json);
}
public int ID { get; private set; }
/// <summary>
/// 1体力直充<br/>2钞票直充<br/>3钻石直充<br/>4资源不足-<br/>5资源不足-<br/>6广告券
/// </summary>
public int Type { get; private set; }
public int IAPID { get; private set; }
public int TokenID { get; private set; }
public int Number { get; private set; }
public float ValueMore { get; private set; }
public int FirstPurchaseGift { get; private set; }
public string ProductIcon { get; private set; }
/// <summary>
/// #1 最受欢迎<br/>#2 最超值
/// </summary>
public int Tag { get; private set; }
public const int __ID__ = -110069629;
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 + ","
+ "Type:" + Type + ","
+ "IAPID:" + IAPID + ","
+ "TokenID:" + TokenID + ","
+ "Number:" + Number + ","
+ "ValueMore:" + ValueMore + ","
+ "FirstPurchaseGift:" + FirstPurchaseGift + ","
+ "ProductIcon:" + ProductIcon + ","
+ "Tag:" + Tag + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}