//------------------------------------------------------------------------------
//
// 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 ExchangeMallConfig : Luban.BeanBase
{
public ExchangeMallConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
MallType = _buf.ReadInt();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);SourceItems = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); SourceItems[__index0] = __e0;}}
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);TargetItems = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); TargetItems[__index0] = __e0;}}
{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 ExchangeMallConfig DeserializeExchangeMallConfig(ByteBuf _buf)
{
return new ExchangeMallConfig(_buf);
}
///
/// 兑换Id
///
public readonly int Id;
///
/// 商品名称
///
public readonly string Name;
///
/// 兑换商店类型
0 全部,这里不能配置
1 金币
2 道具
3 活动
///
public readonly int MallType;
///
/// 需要消耗的物品列表
///
public readonly ResData[] SourceItems;
///
/// 兑换获得的物品列表
///
public readonly ResData[] TargetItems;
///
/// 支持的APP商城类型
0 默认
1 微信小游戏
2 应用包
3 AppStore
4 官网
5 华为
6 公众号
7 小米
///
public readonly int[] AppStore;
///
/// 未上架
///
public readonly bool NotShelved;
///
/// 排序数字
降序
///
public readonly int Sort;
///
/// 描述
///
public readonly string Desc;
public const int __ID__ = -1269715687;
public override int GetTypeId() => __ID__;
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "mallType:" + MallType + ","
+ "SourceItems:" + Luban.StringUtil.CollectionToString(SourceItems) + ","
+ "TargetItems:" + Luban.StringUtil.CollectionToString(TargetItems) + ","
+ "appStore:" + Luban.StringUtil.CollectionToString(AppStore) + ","
+ "notShelved:" + NotShelved + ","
+ "sort:" + Sort + ","
+ "desc:" + Desc + ","
+ "}";
}
}
}