//------------------------------------------------------------------------------ // // 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 GameConfig : Luban.BeanBase { public GameConfig(ByteBuf _buf) { Id = _buf.ReadInt(); GameId = _buf.ReadInt(); ClientId = _buf.ReadInt(); GameName = _buf.ReadString(); GameMode = _buf.ReadByte(); GameStyle = _buf.ReadByte(); OpenGold = _buf.ReadByte(); GoldDeskWarTimeOut = _buf.ReadInt(); OpenFriend = _buf.ReadByte(); FriendDeskWarTimeOut = _buf.ReadInt(); FriendStarWarTimeOut = _buf.ReadInt(); ClubReadyTimeOut = _buf.ReadInt(); FriendAutoReady = _buf.ReadInt(); ClubBalance = _buf.ReadFloat(); } public static GameConfig DeserializeGameConfig(ByteBuf _buf) { return new GameConfig(_buf); } /// /// ID
与节点信息对应 ///
public readonly int Id; /// /// 服务器游戏id /// public readonly int GameId; /// /// 客户端游戏id /// public readonly int ClientId; /// /// 游戏名称 /// public readonly string GameName; /// /// 游戏模式
0普通模式
1百家乐模式
2休闲模式 ///
public readonly byte GameMode; /// /// 0牌类
1麻将类
2休闲类 ///
public readonly byte GameStyle; /// /// 是否开启金币场 /// public readonly byte OpenGold; /// /// 金币场战斗超时间(分钟)
超过时间自动解散 ///
public readonly int GoldDeskWarTimeOut; /// /// 是否开启朋友房 /// public readonly byte OpenFriend; /// /// 朋友房桌子超时时间(小时)
超过时间自动解散 ///
public readonly int FriendDeskWarTimeOut; /// /// 朋友房未开战超时时间(分钟)
超过时间自动解散 ///
public readonly int FriendStarWarTimeOut; /// /// 竞技赛场准备超时时间(秒)
超过时间自动踢到下一桌 ///
public readonly int ClubReadyTimeOut; /// /// 朋友房自动准备时间(秒) /// public readonly int FriendAutoReady; /// /// 俱乐部平衡参数
控制输的平均值(倍数) ///
public readonly float ClubBalance; public const int __ID__ = -2136581644; public override int GetTypeId() => __ID__; public override string ToString() { return "{ " + "id:" + Id + "," + "gameId:" + GameId + "," + "clientId:" + ClientId + "," + "gameName:" + GameName + "," + "gameMode:" + GameMode + "," + "gameStyle:" + GameStyle + "," + "openGold:" + OpenGold + "," + "goldDeskWarTimeOut:" + GoldDeskWarTimeOut + "," + "openFriend:" + OpenFriend + "," + "friendDeskWarTimeOut:" + FriendDeskWarTimeOut + "," + "friendStarWarTimeOut:" + FriendStarWarTimeOut + "," + "clubReadyTimeOut:" + ClubReadyTimeOut + "," + "friendAutoReady:" + FriendAutoReady + "," + "clubBalance:" + ClubBalance + "," + "}"; } } }