//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
namespace Server.Config
{
public sealed partial class NodeConfig : Luban.BeanBase
{
public NodeConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
NodeId = _buf.ReadByte();
NodeNum = _buf.ReadByte();
ServerName = _buf.ReadString();
MaxVer = _buf.ReadInt();
MinVer = _buf.ReadInt();
MaxCVer = _buf.ReadInt();
MinCVer = _buf.ReadInt();
WebSocketPort = _buf.ReadInt();
InnerNetPort = _buf.ReadInt();
OuterNetPort = _buf.ReadInt();
InnerHost = _buf.ReadString();
OnTime = _buf.ReadInt();
}
public static NodeConfig DeserializeNodeConfig(ByteBuf _buf)
{
return new NodeConfig(_buf);
}
///
/// id
///
public readonly int Id;
///
/// 模块id
///
public readonly byte NodeId;
///
/// 节点编号
///
public readonly byte NodeNum;
///
/// 服务器名称
///
public readonly string ServerName;
///
/// 大版本
///
public readonly int MaxVer;
///
/// 小版本
///
public readonly int MinVer;
///
/// 兼容客户端的最大版本
///
public readonly int MaxCVer;
///
/// 兼容客户端的最小版本
///
public readonly int MinCVer;
///
/// WebSocket端口
0表示不开启
///
public readonly int WebSocketPort;
///
/// 内部网络端口
///
public readonly int InnerNetPort;
///
/// 外部网络端口
0表示不开启
///
public readonly int OuterNetPort;
///
/// 内部网络地址(内网地址)
///
public readonly string InnerHost;
///
/// 定时器时间间隔
///
public readonly int OnTime;
public const int __ID__ = -1552158716;
public override int GetTypeId() => __ID__;
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "NodeId:" + NodeId + ","
+ "NodeNum:" + NodeNum + ","
+ "ServerName:" + ServerName + ","
+ "MaxVer:" + MaxVer + ","
+ "MinVer:" + MinVer + ","
+ "MaxCVer:" + MaxCVer + ","
+ "MinCVer:" + MinCVer + ","
+ "WebSocketPort:" + WebSocketPort + ","
+ "InnerNetPort:" + InnerNetPort + ","
+ "OuterNetPort:" + OuterNetPort + ","
+ "InnerHost:" + InnerHost + ","
+ "onTime:" + OnTime + ","
+ "}";
}
}
}