Files
Fishing2Server/Entity/Generate/ConfigTable/Lure.cs
2026-03-05 15:03:45 +08:00

71 lines
1.8 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 Lure : Luban.BeanBase
{
public Lure(JToken _buf)
{
JObject _obj = _buf as JObject;
Id = (int)_obj.GetValue("id");
{ var __json0 = _obj.GetValue("hook"); Hook = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Hook.Add(__v0); } }
HookNum = (int)_obj.GetValue("hook_num");
EfficacyBase = (int)_obj.GetValue("efficacy_base");
}
public static Lure DeserializeLure(JToken _buf)
{
return new Lure(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 鱼钩
/// </summary>
public readonly System.Collections.Generic.List<int> Hook;
/// <summary>
/// 装配鱼钩数量
/// </summary>
public readonly int HookNum;
/// <summary>
/// 吸引力
/// </summary>
public readonly int EfficacyBase;
public const int __ID__ = 2380188;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "hook:" + Luban.StringUtil.CollectionToString(Hook) + ","
+ "hookNum:" + HookNum + ","
+ "efficacyBase:" + EfficacyBase + ","
+ "}";
}
}
}