Files
hjha-server/Config/Code/EntityExchangeMallConfig.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

105 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 EntityExchangeMallConfig : Luban.BeanBase
{
public EntityExchangeMallConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
RedMoney = _buf.ReadInt();
ProductType = _buf.ReadInt();
MallType = _buf.ReadInt();
DayLimit = _buf.ReadInt();
UserDayLimit = _buf.ReadInt();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);AppStore = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); AppStore[__index0] = __e0;}}
NotShelved = _buf.ReadBool();
Sort = _buf.ReadInt();
Desc = _buf.ReadString();
}
public static EntityExchangeMallConfig DeserializeEntityExchangeMallConfig(ByteBuf _buf)
{
return new EntityExchangeMallConfig(_buf);
}
/// <summary>
/// 商品Id
/// </summary>
public readonly int Id;
/// <summary>
/// 商品名称
/// </summary>
public readonly string Name;
/// <summary>
/// 红卡数量
/// </summary>
public readonly int RedMoney;
/// <summary>
/// 商品类型<br/>1 实物商品<br/>2 虚拟商品
/// </summary>
public readonly int ProductType;
/// <summary>
/// 客户端展示分类<br/>1 实物<br/>2 会员话费<br/>
/// </summary>
public readonly int MallType;
/// <summary>
/// 单日限兑数量
/// </summary>
public readonly int DayLimit;
/// <summary>
/// 单个用户单日限兑数量
/// </summary>
public readonly int UserDayLimit;
/// <summary>
/// 支持的APP商城类型<br/>支持的APP商城类型<br/>0 默认<br/>1 微信小游戏<br/>2 应用包<br/>3 AppStore<br/>4 官网<br/>5 华为<br/>6 公众号<br/>7 小米
/// </summary>
public readonly int[] AppStore;
/// <summary>
/// 未上架
/// </summary>
public readonly bool NotShelved;
/// <summary>
/// 排序数字<br/>升序
/// </summary>
public readonly int Sort;
/// <summary>
/// 描述
/// </summary>
public readonly string Desc;
public const int __ID__ = -868244900;
public override int GetTypeId() => __ID__;
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "redMoney:" + RedMoney + ","
+ "productType:" + ProductType + ","
+ "mallType:" + MallType + ","
+ "dayLimit:" + DayLimit + ","
+ "userDayLimit:" + UserDayLimit + ","
+ "appStore:" + Luban.StringUtil.CollectionToString(AppStore) + ","
+ "notShelved:" + NotShelved + ","
+ "sort:" + Sort + ","
+ "desc:" + Desc + ","
+ "}";
}
}
}