
//------------------------------------------------------------------------------
// <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 QueueConfig : Luban.BeanBase
{
    public QueueConfig(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        GameId = _buf.ReadInt();
        PlayerCnt = _buf.ReadInt();
        MergeRobotProb = _buf.ReadFloat();
    }

    public static QueueConfig DeserializeQueueConfig(ByteBuf _buf)
    {
        return new QueueConfig(_buf);
    }

    /// <summary>
    /// ID
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 服务器游戏id
    /// </summary>
    public readonly int GameId;
    /// <summary>
    /// 真人数量
    /// </summary>
    public readonly int PlayerCnt;
    /// <summary>
    /// 强制排队的概率<br/>（排机器人）
    /// </summary>
    public readonly float MergeRobotProb;
   
    public const int __ID__ = 307257235;
    public override int GetTypeId() => __ID__;


    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "gameId:" + GameId + ","
        + "playerCnt:" + PlayerCnt + ","
        + "mergeRobotProb:" + MergeRobotProb + ","
        + "}";
    }
}

}
