//------------------------------------------------------------------------------ // // 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 Luban; namespace GameConfig.TB { public sealed partial class TbGRole : Luban.BeanBase { public TbGRole(ByteBuf _buf) { Id = _buf.ReadInt(); RoleName = _buf.ReadString(); Spine = _buf.ReadInt(); {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);RoleSkillIds = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); RoleSkillIds[__index0] = __e0;}} RoleAttackRange = _buf.ReadInt(); RoleHight = _buf.ReadInt(); RoleScale = _buf.ReadInt(); } public static TbGRole DeserializeTbGRole(ByteBuf _buf) { return new TB.TbGRole(_buf); } /// /// id /// public readonly int Id; /// /// 角色名称 /// public readonly string RoleName; /// /// 角色Spine资源Id /// public readonly int Spine; /// /// 角色技能Id列表 /// public readonly int[] RoleSkillIds; /// /// 角色攻击范围 /// public readonly int RoleAttackRange; /// /// 角色高度 /// public readonly int RoleHight; /// /// 宠物默认缩放 /// public readonly int RoleScale; public const int __ID__ = 319398927; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "roleName:" + RoleName + "," + "spine:" + Spine + "," + "roleSkillIds:" + Luban.StringUtil.CollectionToString(RoleSkillIds) + "," + "roleAttackRange:" + RoleAttackRange + "," + "roleHight:" + RoleHight + "," + "roleScale:" + RoleScale + "," + "}"; } } }