71 lines
1.8 KiB
C#
71 lines
1.8 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.test
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 这是个测试excel结构
|
||
|
/// </summary>
|
||
|
public sealed partial class TestExcelBean1 : Luban.BeanBase
|
||
|
{
|
||
|
public TestExcelBean1(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; }
|
||
|
{ if(!_buf["x2"].IsString) { throw new SerializationException(); } X2 = _buf["x2"]; }
|
||
|
{ if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; }
|
||
|
{ if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; }
|
||
|
}
|
||
|
|
||
|
public static TestExcelBean1 DeserializeTestExcelBean1(JSONNode _buf)
|
||
|
{
|
||
|
return new test.TestExcelBean1(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 最高品质
|
||
|
/// </summary>
|
||
|
public readonly int X1;
|
||
|
/// <summary>
|
||
|
/// 黑色的
|
||
|
/// </summary>
|
||
|
public readonly string X2;
|
||
|
/// <summary>
|
||
|
/// 蓝色的
|
||
|
/// </summary>
|
||
|
public readonly int X3;
|
||
|
/// <summary>
|
||
|
/// 最差品质
|
||
|
/// </summary>
|
||
|
public readonly float X4;
|
||
|
|
||
|
public const int __ID__ = -1738345160;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "x1:" + X1 + ","
|
||
|
+ "x2:" + X2 + ","
|
||
|
+ "x3:" + X3 + ","
|
||
|
+ "x4:" + X4 + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|