//------------------------------------------------------------------------------
// <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 TbGSysDungeon : Luban.BeanBase
{
    public TbGSysDungeon(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        Name = _buf.ReadString();
        Banner = _buf.ReadString();
        Type = _buf.ReadString();
        Tigs = _buf.ReadString();
        Consume = TbGEntity.TResource.DeserializeTResource(_buf);
    }

    public static TbGSysDungeon DeserializeTbGSysDungeon(ByteBuf _buf)
    {
        return new TB.TbGSysDungeon(_buf);
    }

    /// <summary>
    /// id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 副本名称
    /// </summary>
    public readonly string Name;
    /// <summary>
    /// 副本封面
    /// </summary>
    public readonly string Banner;
    /// <summary>
    /// 游戏模式
    /// </summary>
    public readonly string Type;
    /// <summary>
    /// 类标识
    /// </summary>
    public readonly string Tigs;
    /// <summary>
    /// 消耗资源
    /// </summary>
    public readonly TbGEntity.TResource Consume;
   
    public const int __ID__ = 303165446;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
        
        
        
        
        
        Consume?.ResolveRef(tables);
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "name:" + Name + ","
        + "banner:" + Banner + ","
        + "type:" + Type + ","
        + "tigs:" + Tigs + ","
        + "consume:" + Consume + ","
        + "}";
    }
}

}