//------------------------------------------------------------------------------
//
// 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 SepCore.Definition
{
public sealed partial class GoodsConfig : Luban.BeanBase
{
public GoodsConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
GoodsType = (GoodsType)_buf.ReadInt();
GoodsTypeId = _buf.ReadInt();
}
public static GoodsConfig DeserializeGoodsConfig(ByteBuf _buf)
{
return new GoodsConfig(_buf);
}
///
/// 商品编号
///
public readonly int Id;
///
/// 商品类型
///
public readonly GoodsType GoodsType;
///
/// 商品对应物品Id
///
public readonly int GoodsTypeId;
public const int __ID__ = 1358452248;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "GoodsType:" + GoodsType + ","
+ "GoodsTypeId:" + GoodsTypeId + ","
+ "}";
}
}
}