61 lines
1.5 KiB
C#
61 lines
1.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 Luban;
|
|
using SimpleJSON;
|
|
|
|
|
|
namespace cfg
|
|
{
|
|
public sealed partial class Feeder : Luban.BeanBase
|
|
{
|
|
public Feeder(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
|
{ if(!_buf["capacity"].IsNumber) { throw new SerializationException(); } Capacity = _buf["capacity"]; }
|
|
{ if(!_buf["weight"].IsNumber) { throw new SerializationException(); } Weight = _buf["weight"]; }
|
|
}
|
|
|
|
public static Feeder DeserializeFeeder(JSONNode _buf)
|
|
{
|
|
return new Feeder(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 能力
|
|
/// </summary>
|
|
public readonly int Capacity;
|
|
/// <summary>
|
|
/// 重量(克)
|
|
/// </summary>
|
|
public readonly int Weight;
|
|
|
|
public const int __ID__ = 2100424427;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "capacity:" + Capacity + ","
|
|
+ "weight:" + Weight + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
}
|
|
|