先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
122 lines
4.5 KiB
C#
122 lines
4.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 Pack : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public Pack(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["Title"]["key"].IsString) { throw new SerializationException(); } Title_l10n_key = _json["Title"]["key"]; if(!_json["Title"]["text"].IsString) { throw new SerializationException(); } Title = _json["Title"]["text"]; }
|
|
{ if(!_json["Desc"]["key"].IsString) { throw new SerializationException(); } Desc_l10n_key = _json["Desc"]["key"]; if(!_json["Desc"]["text"].IsString) { throw new SerializationException(); } Desc = _json["Desc"]["text"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ if(!_json["Panel"].IsString) { throw new SerializationException(); } Panel = _json["Panel"]; }
|
|
{ if(!_json["TitleBg"].IsString) { throw new SerializationException(); } TitleBg = _json["TitleBg"]; }
|
|
{ if(!_json["ContentBg"].IsString) { throw new SerializationException(); } ContentBg = _json["ContentBg"]; }
|
|
{ if(!_json["Purchase_MaxNumber"].IsNumber) { throw new SerializationException(); } PurchaseMaxNumber = _json["Purchase_MaxNumber"]; }
|
|
{ if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; }
|
|
{ if(!_json["IAP_ID"].IsNumber) { throw new SerializationException(); } IAPID = _json["IAP_ID"]; }
|
|
{ if(!_json["Rebate"].IsNumber) { throw new SerializationException(); } Rebate = _json["Rebate"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public Pack(int ID, string Title, string Desc, string Icon, string Panel, string TitleBg, string ContentBg, int Purchase_MaxNumber, int DropID, int IAP_ID, float Rebate )
|
|
{
|
|
this.ID = ID;
|
|
this.Title = Title;
|
|
this.Desc = Desc;
|
|
this.Icon = Icon;
|
|
this.Panel = Panel;
|
|
this.TitleBg = TitleBg;
|
|
this.ContentBg = ContentBg;
|
|
this.PurchaseMaxNumber = Purchase_MaxNumber;
|
|
this.DropID = DropID;
|
|
this.IAPID = IAP_ID;
|
|
this.Rebate = Rebate;
|
|
PostInit();
|
|
}
|
|
|
|
public static Pack DeserializePack(JSONNode _json)
|
|
{
|
|
return new Pack(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string Title { get; private set; }
|
|
public string Title_l10n_key { get; }
|
|
public string Desc { get; private set; }
|
|
public string Desc_l10n_key { get; }
|
|
public string Icon { get; private set; }
|
|
/// <summary>
|
|
/// 目前只有鱼竿界面有用
|
|
/// </summary>
|
|
public string Panel { get; private set; }
|
|
public string TitleBg { get; private set; }
|
|
public string ContentBg { get; private set; }
|
|
/// <summary>
|
|
/// 没有则不填
|
|
/// </summary>
|
|
public int PurchaseMaxNumber { get; private set; }
|
|
/// <summary>
|
|
/// 投放内容
|
|
/// </summary>
|
|
public int DropID { get; private set; }
|
|
/// <summary>
|
|
/// 配-1=广告
|
|
/// </summary>
|
|
public int IAPID { get; private set; }
|
|
/// <summary>
|
|
/// 百分比形式
|
|
/// </summary>
|
|
public float Rebate { get; private set; }
|
|
|
|
public const int __ID__ = 2479673;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
Title = translator(Title_l10n_key, Title);
|
|
Desc = translator(Desc_l10n_key, Desc);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Title:" + Title + ","
|
|
+ "Desc:" + Desc + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Panel:" + Panel + ","
|
|
+ "TitleBg:" + TitleBg + ","
|
|
+ "ContentBg:" + ContentBg + ","
|
|
+ "PurchaseMaxNumber:" + PurchaseMaxNumber + ","
|
|
+ "DropID:" + DropID + ","
|
|
+ "IAPID:" + IAPID + ","
|
|
+ "Rebate:" + Rebate + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|