83 lines
1.9 KiB
C#
83 lines
1.9 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 Newtonsoft.Json.Linq;
|
|
|
|
|
|
|
|
namespace cfg
|
|
{
|
|
|
|
public sealed partial class Fish : Luban.BeanBase
|
|
{
|
|
public Fish(JToken _buf)
|
|
{
|
|
JObject _obj = _buf as JObject;
|
|
Id = (int)_obj.GetValue("id");
|
|
Name = (string)_obj.GetValue("name");
|
|
MinWeight = (int)_obj.GetValue("min_weight");
|
|
MaxWeight = (int)_obj.GetValue("max_weight");
|
|
Accept = (int)_obj.GetValue("accept");
|
|
Water = (int)_obj.GetValue("water");
|
|
}
|
|
|
|
public static Fish DeserializeFish(JToken _buf)
|
|
{
|
|
return new Fish(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 鱼名字
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 最小重量(克)
|
|
/// </summary>
|
|
public readonly int MinWeight;
|
|
/// <summary>
|
|
/// 最大重量(克)
|
|
/// </summary>
|
|
public readonly int MaxWeight;
|
|
/// <summary>
|
|
/// 接受的鱼饵配置组
|
|
/// </summary>
|
|
public readonly int Accept;
|
|
/// <summary>
|
|
/// 需要的水
|
|
/// </summary>
|
|
public readonly int Water;
|
|
|
|
|
|
public const int __ID__ = 2189944;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "name:" + Name + ","
|
|
+ "minWeight:" + MinWeight + ","
|
|
+ "maxWeight:" + MaxWeight + ","
|
|
+ "accept:" + Accept + ","
|
|
+ "water:" + Water + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
}
|
|
|