Files
hjha-server/Config/Code/ConstConfig.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
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
2026-07-07 12:02:15 +08:00

111 lines
4.1 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 ConstConfig : Luban.BeanBase
{
public ConstConfig(ByteBuf _buf)
{
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Relief = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); Relief[__index0] = __e0;}}
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Poor = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); Poor[__index0] = __e0;}}
ReliefLimitCnt = _buf.ReadInt();
AdGiftCnt = _buf.ReadInt();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);AdGiftReward = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); AdGiftReward[__index0] = __e0;}}
SignReward = _buf.ReadInt();
PrizeWheelLimit = _buf.ReadInt();
PrizeWheelFreeCnt = _buf.ReadInt();
GeneralAdLimit = _buf.ReadInt();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);GeneralAdRewardRange = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); GeneralAdRewardRange[__index0] = __e0;}}
RealNameSecreKey = _buf.ReadString();
HandTrackerDiamondCnt = _buf.ReadInt();
}
public static ConstConfig DeserializeConstConfig(ByteBuf _buf)
{
return new ConstConfig(_buf);
}
/// <summary>
/// 救济金 单位W
/// </summary>
public readonly int[] Relief;
/// <summary>
/// 可领救济金的穷人 单位W
/// </summary>
public readonly int[] Poor;
/// <summary>
/// 救济金 每日领取上限
/// </summary>
public readonly int ReliefLimitCnt;
/// <summary>
/// 广告礼包数量
/// </summary>
public readonly int AdGiftCnt;
/// <summary>
/// 广告礼包奖励 单位W
/// </summary>
public readonly int[] AdGiftReward;
/// <summary>
/// 签到奖励
/// </summary>
public readonly int SignReward;
/// <summary>
/// 每日转盘上限
/// </summary>
public readonly int PrizeWheelLimit;
/// <summary>
/// 每日转盘免费次数
/// </summary>
public readonly int PrizeWheelFreeCnt;
/// <summary>
/// 通用广告礼包次数 服务器是这个数值的2倍
/// </summary>
public readonly int GeneralAdLimit;
/// <summary>
/// 广告奖励金额范围,单位万
/// </summary>
public readonly int[] GeneralAdRewardRange;
/// <summary>
/// 实名认证秘钥
/// </summary>
public readonly string RealNameSecreKey;
/// <summary>
/// 记牌器消耗的钻石数量
/// </summary>
public readonly int HandTrackerDiamondCnt;
public const int __ID__ = -1271334811;
public override int GetTypeId() => __ID__;
public override string ToString()
{
return "{ "
+ "Relief:" + Luban.StringUtil.CollectionToString(Relief) + ","
+ "Poor:" + Luban.StringUtil.CollectionToString(Poor) + ","
+ "ReliefLimitCnt:" + ReliefLimitCnt + ","
+ "AdGiftCnt:" + AdGiftCnt + ","
+ "AdGiftReward:" + Luban.StringUtil.CollectionToString(AdGiftReward) + ","
+ "SignReward:" + SignReward + ","
+ "PrizeWheelLimit:" + PrizeWheelLimit + ","
+ "PrizeWheelFreeCnt:" + PrizeWheelFreeCnt + ","
+ "GeneralAdLimit:" + GeneralAdLimit + ","
+ "GeneralAdRewardRange:" + Luban.StringUtil.CollectionToString(GeneralAdRewardRange) + ","
+ "RealNameSecreKey:" + RealNameSecreKey + ","
+ "HandTrackerDiamondCnt:" + HandTrackerDiamondCnt + ","
+ "}";
}
}
}