//------------------------------------------------------------------------------
// <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 TbGRoleSkill : Luban.BeanBase
{
    public TbGRoleSkill(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        SkillName = _buf.ReadString();
        SkillController = _buf.ReadString();
        {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);SkillArgs = new string[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { string __e0;__e0 = _buf.ReadString(); SkillArgs[__index0] = __e0;}}
        SkillText = _buf.ReadString();
    }

    public static TbGRoleSkill DeserializeTbGRoleSkill(ByteBuf _buf)
    {
        return new TB.TbGRoleSkill(_buf);
    }

    /// <summary>
    /// 角色Id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 技能名称
    /// </summary>
    public readonly string SkillName;
    /// <summary>
    /// 技能控制器
    /// </summary>
    public readonly string SkillController;
    /// <summary>
    /// 技能参数
    /// </summary>
    public readonly string[] SkillArgs;
    /// <summary>
    /// 技能介绍
    /// </summary>
    public readonly string SkillText;
   
    public const int __ID__ = 1673095042;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
        
        
        
        
        
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "skillName:" + SkillName + ","
        + "skillController:" + SkillController + ","
        + "skillArgs:" + Luban.StringUtil.CollectionToString(SkillArgs) + ","
        + "skillText:" + SkillText + ","
        + "}";
    }
}

}