//------------------------------------------------------------------------------ // // 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 TbGRoleAttack : Luban.BeanBase { public TbGRoleAttack(ByteBuf _buf) { Id = _buf.ReadInt(); AttackWay = _buf.ReadString(); {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);AttackArgs = new string[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { string __e0;__e0 = _buf.ReadString(); AttackArgs[__index0] = __e0;}} } public static TbGRoleAttack DeserializeTbGRoleAttack(ByteBuf _buf) { return new TB.TbGRoleAttack(_buf); } /// /// 角色Id /// public readonly int Id; /// /// 攻击方式 /// public readonly string AttackWay; /// /// 攻击参数 /// public readonly string[] AttackArgs; public const int __ID__ = -180357321; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "attackWay:" + AttackWay + "," + "attackArgs:" + Luban.StringUtil.CollectionToString(AttackArgs) + "," + "}"; } } }