56 lines
1.2 KiB
C#
56 lines
1.2 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 SimpleJSON;
|
|
|
|
|
|
namespace cfg
|
|
{
|
|
public sealed partial class Vec2 : Luban.BeanBase
|
|
{
|
|
public Vec2(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
|
|
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
|
|
}
|
|
|
|
public static Vec2 DeserializeVec2(JSONNode _buf)
|
|
{
|
|
return new Vec2(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// x轴向
|
|
/// </summary>
|
|
public readonly int X;
|
|
/// <summary>
|
|
/// y轴向
|
|
/// </summary>
|
|
public readonly int Y;
|
|
|
|
public const int __ID__ = 2662206;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "x:" + X + ","
|
|
+ "y:" + Y + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|