修改为luban
This commit is contained in:
76
Entity/Generate/ConfigTable/Fish.cs
Normal file
76
Entity/Generate/ConfigTable/Fish.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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");
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
|
||||
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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user