
//------------------------------------------------------------------------------
// <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 Server.Config
{
public sealed partial class TingConfig : Luban.BeanBase
{
    public TingConfig(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        GameId = _buf.ReadInt();
        TingId = _buf.ReadInt();
        TingName = _buf.ReadString();
        MinPlayerCnt = _buf.ReadInt();
        MaxPlayerCnt = _buf.ReadInt();
        DeskMaxRobotCnt = _buf.ReadInt();
        DeskCnt = _buf.ReadInt();
        QueueName = _buf.ReadString();
    }

    public static TingConfig DeserializeTingConfig(ByteBuf _buf)
    {
        return new TingConfig(_buf);
    }

    /// <summary>
    /// id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 服务器Id
    /// </summary>
    public readonly int GameId;
    /// <summary>
    /// 厅Id
    /// </summary>
    public readonly int TingId;
    /// <summary>
    /// 厅名称
    /// </summary>
    public readonly string TingName;
    /// <summary>
    /// 最小开战人数
    /// </summary>
    public readonly int MinPlayerCnt;
    /// <summary>
    /// 最大开战人数
    /// </summary>
    public readonly int MaxPlayerCnt;
    /// <summary>
    /// 桌上机器人最大数量
    /// </summary>
    public readonly int DeskMaxRobotCnt;
    /// <summary>
    /// 桌子数量<br/>0表示自动创建<br/>1表示固定创建
    /// </summary>
    public readonly int DeskCnt;
    /// <summary>
    /// 排队器名称
    /// </summary>
    public readonly string QueueName;
   
    public const int __ID__ = 1546793968;
    public override int GetTypeId() => __ID__;


    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "gameId:" + GameId + ","
        + "tingId:" + TingId + ","
        + "tingName:" + TingName + ","
        + "minPlayerCnt:" + MinPlayerCnt + ","
        + "maxPlayerCnt:" + MaxPlayerCnt + ","
        + "deskMaxRobotCnt:" + DeskMaxRobotCnt + ","
        + "deskCnt:" + DeskCnt + ","
        + "queueName:" + QueueName + ","
        + "}";
    }
}

}
