//------------------------------------------------------------------------------ // // 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 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(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); } /// /// 编号 /// public int Id { get; private set; } /// /// 关键字 /// public string Key { get; private set; } /// /// 值 /// public int Val { get; private set; } /// /// 数组值 /// public System.Collections.Generic.List ValAry { get; private set; } /// /// 描述 /// public string Desc { get; private set; } public const int __ID__ = -497842387; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func 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(); } }