修改为luban
This commit is contained in:
70
Entity/Generate/ConfigTable/Reel.cs
Normal file
70
Entity/Generate/ConfigTable/Reel.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Reel : Luban.BeanBase
|
||||
{
|
||||
public Reel(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
ReelType = (int)_obj.GetValue("reel_type");
|
||||
{ var __json0 = _obj.GetValue("gear_ratio"); GearRatio = new System.Collections.Generic.List<float>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { float __v0; __v0 = (float)__e0; GearRatio.Add(__v0); } }
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
}
|
||||
|
||||
public static Reel DeserializeReel(JToken _buf)
|
||||
{
|
||||
return new Reel(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 鱼轮类型
|
||||
/// </summary>
|
||||
public readonly int ReelType;
|
||||
/// <summary>
|
||||
/// 组件比
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<float> GearRatio;
|
||||
/// <summary>
|
||||
/// 强度
|
||||
/// </summary>
|
||||
public readonly int Strength;
|
||||
|
||||
|
||||
public const int __ID__ = 2543162;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "reelType:" + ReelType + ","
|
||||
+ "gearRatio:" + Luban.StringUtil.CollectionToString(GearRatio) + ","
|
||||
+ "strength:" + Strength + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user