//------------------------------------------------------------------------------ // // 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 System.Text.Json; namespace cfg.test2 { /// /// 矩形 /// public sealed partial class Rectangle : test.Shape { public Rectangle(JsonElement _buf) : base(_buf) { Width = _buf.GetProperty("width").GetSingle(); Height = _buf.GetProperty("height").GetSingle(); } public static Rectangle DeserializeRectangle(JsonElement _buf) { return new test2.Rectangle(_buf); } /// /// 宽度 /// public readonly float Width; /// /// 高度 /// public readonly float Height; public const int __ID__ = 694982337; public override int GetTypeId() => __ID__; public override void ResolveRef(Tables tables) { base.ResolveRef(tables); } public override string ToString() { return "{ " + "width:" + Width + "," + "height:" + Height + "," + "}"; } } }