mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
91 lines
2.3 KiB
C#
91 lines
2.3 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 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 角色名称
|
|
/// </summary>
|
|
public readonly string RoleName;
|
|
/// <summary>
|
|
/// 角色Spine资源Id
|
|
/// </summary>
|
|
public readonly int Spine;
|
|
/// <summary>
|
|
/// 角色技能Id列表
|
|
/// </summary>
|
|
public readonly int[] RoleSkillIds;
|
|
/// <summary>
|
|
/// 角色攻击范围
|
|
/// </summary>
|
|
public readonly int RoleAttackRange;
|
|
/// <summary>
|
|
/// 角色高度
|
|
/// </summary>
|
|
public readonly int RoleHight;
|
|
/// <summary>
|
|
/// 宠物默认缩放
|
|
/// </summary>
|
|
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 + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|