mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
60
luban_examples/Projects/CfgValidator/Gen/test2.Rectangle.cs
Normal file
60
luban_examples/Projects/CfgValidator/Gen/test2.Rectangle.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 System.Text.Json;
|
||||
|
||||
|
||||
namespace cfg.test2
|
||||
{
|
||||
/// <summary>
|
||||
/// 矩形
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 宽度
|
||||
/// </summary>
|
||||
public readonly float Width;
|
||||
/// <summary>
|
||||
/// 高度
|
||||
/// </summary>
|
||||
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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user