82 lines
2.1 KiB
C#
82 lines
2.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 Game.Config.Config
|
|
{
|
|
|
|
public sealed partial class ConstCfg : Bright.Config.BeanBase
|
|
{
|
|
public ConstCfg(ByteBuf _buf)
|
|
{
|
|
Id = _buf.ReadInt();
|
|
Key = _buf.ReadString();
|
|
Val = _buf.ReadInt();
|
|
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);ValAry = new System.Collections.Generic.List<int>(n);for(var i = 0 ; i < n ; i++) { int _e; _e = _buf.ReadInt(); ValAry.Add(_e);}}
|
|
Desc = _buf.ReadString();
|
|
PostInit();
|
|
}
|
|
|
|
public static ConstCfg DeserializeConstCfg(ByteBuf _buf)
|
|
{
|
|
return new Config.ConstCfg(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 编号
|
|
/// </summary>
|
|
public int Id { get; private set; }
|
|
/// <summary>
|
|
/// 关键字
|
|
/// </summary>
|
|
public string Key { get; private set; }
|
|
/// <summary>
|
|
/// 值
|
|
/// </summary>
|
|
public int Val { get; private set; }
|
|
/// <summary>
|
|
/// 数组值
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> ValAry { get; private set; }
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Desc { get; private set; }
|
|
|
|
public const int __ID__ = -497842387;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "Id:" + Id + ","
|
|
+ "Key:" + Key + ","
|
|
+ "Val:" + Val + ","
|
|
+ "ValAry:" + Bright.Common.StringUtil.CollectionToString(ValAry) + ","
|
|
+ "Desc:" + Desc + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
|
|
}
|