6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
117 lines
3.2 KiB
C#
117 lines
3.2 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <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 CastlesConfig : Luban.BeanBase
|
|
{
|
|
public CastlesConfig(ByteBuf _buf)
|
|
{
|
|
Id = _buf.ReadInt();
|
|
GameId = _buf.ReadInt();
|
|
CastleId = _buf.ReadInt();
|
|
BeiLv = _buf.ReadInt();
|
|
MinMoney = _buf.ReadInt();
|
|
MaxMoney = _buf.ReadInt();
|
|
Tax = _buf.ReadInt();
|
|
RaceTax = _buf.ReadInt();
|
|
Exp = _buf.ReadInt();
|
|
ScoreMultiple = _buf.ReadInt();
|
|
CanSaiJuanReward = _buf.ReadInt();
|
|
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Tings = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); Tings[__index0] = __e0;}}
|
|
Queuetag = _buf.ReadString();
|
|
}
|
|
|
|
public static CastlesConfig DeserializeCastlesConfig(ByteBuf _buf)
|
|
{
|
|
return new CastlesConfig(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 服务器id
|
|
/// </summary>
|
|
public readonly int GameId;
|
|
/// <summary>
|
|
/// 城堡id
|
|
/// </summary>
|
|
public readonly int CastleId;
|
|
/// <summary>
|
|
/// 倍率
|
|
/// </summary>
|
|
public readonly int BeiLv;
|
|
/// <summary>
|
|
/// 最小金币数额
|
|
/// </summary>
|
|
public readonly int MinMoney;
|
|
/// <summary>
|
|
/// 最大金币数额
|
|
/// </summary>
|
|
public readonly int MaxMoney;
|
|
/// <summary>
|
|
/// 税收
|
|
/// </summary>
|
|
public readonly int Tax;
|
|
/// <summary>
|
|
/// 比赛税收
|
|
/// </summary>
|
|
public readonly int RaceTax;
|
|
/// <summary>
|
|
/// 经验加成
|
|
/// </summary>
|
|
public readonly int Exp;
|
|
/// <summary>
|
|
/// 比赛积分比例
|
|
/// </summary>
|
|
public readonly int ScoreMultiple;
|
|
/// <summary>
|
|
/// 参赛券奖励
|
|
/// </summary>
|
|
public readonly int CanSaiJuanReward;
|
|
/// <summary>
|
|
/// 拥有的厅
|
|
/// </summary>
|
|
public readonly int[] Tings;
|
|
/// <summary>
|
|
/// 排队标记<br/>(标记相同的房间可以排队在一起)
|
|
/// </summary>
|
|
public readonly string Queuetag;
|
|
|
|
public const int __ID__ = -1352367747;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "gameId:" + GameId + ","
|
|
+ "castleId:" + CastleId + ","
|
|
+ "beiLv:" + BeiLv + ","
|
|
+ "minMoney:" + MinMoney + ","
|
|
+ "maxMoney:" + MaxMoney + ","
|
|
+ "tax:" + Tax + ","
|
|
+ "raceTax:" + RaceTax + ","
|
|
+ "exp:" + Exp + ","
|
|
+ "scoreMultiple:" + ScoreMultiple + ","
|
|
+ "canSaiJuanReward:" + CanSaiJuanReward + ","
|
|
+ "tings:" + Luban.StringUtil.CollectionToString(Tings) + ","
|
|
+ "queuetag:" + Queuetag + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|