备份CatanBuilding瘦身独立工程

This commit is contained in:
JSD\13999
2026-05-26 16:15:54 +08:00
commit 2d0e6a61b7
12001 changed files with 2431925 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
//------------------------------------------------------------------------------
// <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 ItemStore : Bright.Config.BeanBase
{
public JSONNode json;
public ItemStore(JSONNode _json)
{
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
{ if(!_json["CellId"].IsNumber) { throw new SerializationException(); } CellId = _json["CellId"]; }
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
{ if(!_json["ItemType"].IsNumber) { throw new SerializationException(); } ItemType = _json["ItemType"]; }
{ if(!_json["ItemId"].IsNumber) { throw new SerializationException(); } ItemId = _json["ItemId"]; }
{ if(!_json["ItemNumber"].IsNumber) { throw new SerializationException(); } ItemNumber = _json["ItemNumber"]; }
{ if(!_json["TokenId"].IsNumber) { throw new SerializationException(); } TokenId = _json["TokenId"]; }
{ if(!_json["TokenNumber"].IsNumber) { throw new SerializationException(); } TokenNumber = _json["TokenNumber"]; }
{ var __json0 = _json["Discount"]; if(!__json0.IsArray) { throw new SerializationException(); } Discount = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Discount.Add(__v0); } }
{ var __json0 = _json["DiscountWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } DiscountWeight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DiscountWeight.Add(__v0); } }
json = _json;
PostInit();
}
public ItemStore(int Id, int CellId, int Weight, int ItemType, int ItemId, int ItemNumber, int TokenId, int TokenNumber, System.Collections.Generic.List<float> Discount, System.Collections.Generic.List<int> DiscountWeight )
{
this.Id = Id;
this.CellId = CellId;
this.Weight = Weight;
this.ItemType = ItemType;
this.ItemId = ItemId;
this.ItemNumber = ItemNumber;
this.TokenId = TokenId;
this.TokenNumber = TokenNumber;
this.Discount = Discount;
this.DiscountWeight = DiscountWeight;
PostInit();
}
public static ItemStore DeserializeItemStore(JSONNode _json)
{
return new ItemStore(_json);
}
/// <summary>
/// 主键
/// </summary>
public int Id { get; private set; }
public int CellId { get; private set; }
public int Weight { get; private set; }
/// <summary>
/// 0=普通道具;<br/>1=宝箱(深入一层)<br/>9=鱼卡
/// </summary>
public int ItemType { get; private set; }
/// <summary>
/// 若ItemType=9此列为品质0绿1蓝2紫3橙4彩
/// </summary>
public int ItemId { get; private set; }
/// <summary>
/// 道具数量
/// </summary>
public int ItemNumber { get; private set; }
/// <summary>
/// 代币Id
/// </summary>
public int TokenId { get; private set; }
public int TokenNumber { get; private set; }
/// <summary>
/// 配置为空代表无折扣
/// </summary>
public System.Collections.Generic.List<float> Discount { get; private set; }
public System.Collections.Generic.List<int> DiscountWeight { get; private set; }
public const int __ID__ = -148266642;
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 + ","
+ "CellId:" + CellId + ","
+ "Weight:" + Weight + ","
+ "ItemType:" + ItemType + ","
+ "ItemId:" + ItemId + ","
+ "ItemNumber:" + ItemNumber + ","
+ "TokenId:" + TokenId + ","
+ "TokenNumber:" + TokenNumber + ","
+ "Discount:" + Bright.Common.StringUtil.CollectionToString(Discount) + ","
+ "DiscountWeight:" + Bright.Common.StringUtil.CollectionToString(DiscountWeight) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}