92 lines
3.1 KiB
C#
92 lines
3.1 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 Bright.Serialization;
|
||
using System.Collections.Generic;
|
||
|
||
|
||
|
||
namespace Cfg.Config
|
||
{
|
||
|
||
public sealed partial class TestData : Bright.Config.BeanBase
|
||
{
|
||
public TestData(ByteBuf _buf)
|
||
{
|
||
Id = _buf.ReadInt();
|
||
Tab1 = _buf.ReadString();
|
||
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab2 = new System.Collections.Generic.List<int>(n);for(var i = 0 ; i < n ; i++) { int _e; _e = _buf.ReadInt(); Tab2.Add(_e);}}
|
||
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab3 = new System.Collections.Generic.List<string>(n);for(var i = 0 ; i < n ; i++) { string _e; _e = _buf.ReadString(); Tab3.Add(_e);}}
|
||
Tab6 = SplitNum.DeserializeSplitNum(_buf);
|
||
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab7 = new System.Collections.Generic.List<SplitNum>(n);for(var i = 0 ; i < n ; i++) { SplitNum _e; _e = SplitNum.DeserializeSplitNum(_buf); Tab7.Add(_e);}}
|
||
PostInit();
|
||
}
|
||
|
||
public static TestData DeserializeTestData(ByteBuf _buf)
|
||
{
|
||
return new Config.TestData(_buf);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 描述:int
|
||
/// </summary>
|
||
public int Id { get; private set; }
|
||
/// <summary>
|
||
/// 描述:string
|
||
/// </summary>
|
||
public string Tab1 { get; private set; }
|
||
/// <summary>
|
||
/// 描述:(list#sep=*),int
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> Tab2 { get; private set; }
|
||
/// <summary>
|
||
/// 描述:(list#sep=*),string
|
||
/// </summary>
|
||
public System.Collections.Generic.List<string> Tab3 { get; private set; }
|
||
/// <summary>
|
||
/// 描述:SplitNum
|
||
/// </summary>
|
||
public SplitNum Tab6 { get; private set; }
|
||
/// <summary>
|
||
/// 描述:(list#sep=|),SplitNum
|
||
/// </summary>
|
||
public System.Collections.Generic.List<SplitNum> Tab7 { get; private set; }
|
||
|
||
public const int __ID__ = -1077271416;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public void Resolve(Dictionary<string, object> _tables)
|
||
{
|
||
Tab6?.Resolve(_tables);
|
||
foreach(var _e in Tab7) { _e?.Resolve(_tables); }
|
||
PostResolve();
|
||
}
|
||
|
||
public void TranslateText(System.Func<string, string, string> translator)
|
||
{
|
||
Tab6?.TranslateText(translator);
|
||
foreach(var _e in Tab7) { _e?.TranslateText(translator); }
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return "{ "
|
||
+ "Id:" + Id + ","
|
||
+ "Tab1:" + Tab1 + ","
|
||
+ "Tab2:" + Bright.Common.StringUtil.CollectionToString(Tab2) + ","
|
||
+ "Tab3:" + Bright.Common.StringUtil.CollectionToString(Tab3) + ","
|
||
+ "Tab6:" + Tab6 + ","
|
||
+ "Tab7:" + Bright.Common.StringUtil.CollectionToString(Tab7) + ","
|
||
+ "}";
|
||
}
|
||
|
||
partial void PostInit();
|
||
partial void PostResolve();
|
||
}
|
||
|
||
}
|