首次提交
This commit is contained in:
96
Assets/Scripts/Generate/Config/Goods.cs
Normal file
96
Assets/Scripts/Generate/Config/Goods.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class Goods : Luban.BeanBase
|
||||
{
|
||||
public Goods(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ var __json0 = _buf["shop"]; if(!__json0.IsArray) { throw new SerializationException(); } Shop = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Shop.Add(__v0); } }
|
||||
{ if(!_buf["group"].IsNumber) { throw new SerializationException(); } Group = _buf["group"]; }
|
||||
{ var __json0 = _buf["items"]; if(!__json0.IsArray) { throw new SerializationException(); } Items = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Items.Add(__v0); } }
|
||||
{ if(!_buf["price1"].IsNumber) { throw new SerializationException(); } Price1 = _buf["price1"]; }
|
||||
{ if(!_buf["price2"].IsNumber) { throw new SerializationException(); } Price2 = _buf["price2"]; }
|
||||
{ var __json0 = _buf["label"]; if(!__json0.IsArray) { throw new SerializationException(); } Label = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Label.Add(__v0); } }
|
||||
{ if(!_buf["number"].IsNumber) { throw new SerializationException(); } Number = _buf["number"]; }
|
||||
{ if(!_buf["disable"].IsNumber) { throw new SerializationException(); } Disable = _buf["disable"]; }
|
||||
}
|
||||
|
||||
public static Goods DeserializeGoods(JSONNode _buf)
|
||||
{
|
||||
return new Goods(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 出现商店
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> Shop;
|
||||
/// <summary>
|
||||
/// 组
|
||||
/// </summary>
|
||||
public readonly int Group;
|
||||
/// <summary>
|
||||
/// 物品
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> Items;
|
||||
/// <summary>
|
||||
/// 银币价格
|
||||
/// </summary>
|
||||
public readonly int Price1;
|
||||
/// <summary>
|
||||
/// 金币价格
|
||||
/// </summary>
|
||||
public readonly int Price2;
|
||||
/// <summary>
|
||||
/// 标签
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> Label;
|
||||
/// <summary>
|
||||
/// 可购买数量
|
||||
/// </summary>
|
||||
public readonly int Number;
|
||||
/// <summary>
|
||||
/// 禁用状态
|
||||
/// </summary>
|
||||
public readonly int Disable;
|
||||
|
||||
public const int __ID__ = 68986678;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "shop:" + Luban.StringUtil.CollectionToString(Shop) + ","
|
||||
+ "group:" + Group + ","
|
||||
+ "items:" + Luban.StringUtil.CollectionToString(Items) + ","
|
||||
+ "price1:" + Price1 + ","
|
||||
+ "price2:" + Price2 + ","
|
||||
+ "label:" + Luban.StringUtil.CollectionToString(Label) + ","
|
||||
+ "number:" + Number + ","
|
||||
+ "disable:" + Disable + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user