修改为luban
This commit is contained in:
64
Entity/Generate/ConfigTable/Bobber.cs
Normal file
64
Entity/Generate/ConfigTable/Bobber.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Bobber : Luban.BeanBase
|
||||
{
|
||||
public Bobber(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Displacement = (int)_obj.GetValue("displacement");
|
||||
{ var __json0 = _obj.GetValue("night_light"); NightLight = new System.Collections.Generic.List<float>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { float __v0; __v0 = (float)__e0; NightLight.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Bobber DeserializeBobber(JToken _buf)
|
||||
{
|
||||
return new Bobber(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 位移
|
||||
/// </summary>
|
||||
public readonly int Displacement;
|
||||
/// <summary>
|
||||
/// 是否夜光
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<float> NightLight;
|
||||
|
||||
|
||||
public const int __ID__ = 1995051738;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "displacement:" + Displacement + ","
|
||||
+ "nightLight:" + Luban.StringUtil.CollectionToString(NightLight) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user