//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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); } /// /// x轴向 /// public readonly int X; /// /// y轴向 /// 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 + "," + "}"; } } }