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
99 lines
3.1 KiB
C#
99 lines
3.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 DiamondMallConfig : Luban.BeanBase
|
|
{
|
|
public DiamondMallConfig(ByteBuf _buf)
|
|
{
|
|
Id = _buf.ReadInt();
|
|
PlatProductId = _buf.ReadString();
|
|
Name = _buf.ReadString();
|
|
Price = _buf.ReadInt();
|
|
AppStoreType = _buf.ReadInt();
|
|
NotShelved = _buf.ReadBool();
|
|
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Packages = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); Packages[__index0] = __e0;}}
|
|
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Gift = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); Gift[__index0] = __e0;}}
|
|
Sort = _buf.ReadInt();
|
|
Desc = _buf.ReadString();
|
|
}
|
|
|
|
public static DiamondMallConfig DeserializeDiamondMallConfig(ByteBuf _buf)
|
|
{
|
|
return new DiamondMallConfig(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品ID
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 第三方平台Id
|
|
/// </summary>
|
|
public readonly string PlatProductId;
|
|
/// <summary>
|
|
/// 商品名称
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 价格(人民币元)
|
|
/// </summary>
|
|
public readonly int Price;
|
|
/// <summary>
|
|
/// app商店类型<br/>0 默认<br/>1 微信小游戏<br/>2 应用包<br/>3 AppStore<br/>4 官网<br/>5 华为<br/>6 公众号<br/>7 小米<br/>
|
|
/// </summary>
|
|
public readonly int AppStoreType;
|
|
/// <summary>
|
|
/// 未上架
|
|
/// </summary>
|
|
public readonly bool NotShelved;
|
|
/// <summary>
|
|
/// 商品包
|
|
/// </summary>
|
|
public readonly ResData[] Packages;
|
|
/// <summary>
|
|
/// 赠送包
|
|
/// </summary>
|
|
public readonly ResData[] Gift;
|
|
/// <summary>
|
|
/// 排序数字<br/>降序
|
|
/// </summary>
|
|
public readonly int Sort;
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public readonly string Desc;
|
|
|
|
public const int __ID__ = 1355365066;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "platProductId:" + PlatProductId + ","
|
|
+ "name:" + Name + ","
|
|
+ "price:" + Price + ","
|
|
+ "appStoreType:" + AppStoreType + ","
|
|
+ "notShelved:" + NotShelved + ","
|
|
+ "packages:" + Luban.StringUtil.CollectionToString(Packages) + ","
|
|
+ "gift:" + Luban.StringUtil.CollectionToString(Gift) + ","
|
|
+ "sort:" + Sort + ","
|
|
+ "desc:" + Desc + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|