//------------------------------------------------------------------------------
//
// 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();
PropId = _buf.ReadInt();
PropId_Ref = null;
WeaponType = (WeaponType)_buf.ReadInt();
}
public static GoodsConfig DeserializeGoodsConfig(ByteBuf _buf)
{
return new GoodsConfig(_buf);
}
///
/// 商品编号
///
public readonly int Id;
///
/// 商品类型
///
public readonly GoodsType GoodsType;
///
/// 道具商品Id
///
public readonly int PropId;
public PropConfig PropId_Ref;
///
/// 武器商品类型
///
public readonly WeaponType WeaponType;
public const int __ID__ = 1358452248;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
PropId_Ref = tables.TbPropConfig.GetOrDefault(PropId);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "goodsType:" + GoodsType + ","
+ "propId:" + PropId + ","
+ "weaponType:" + WeaponType + ","
+ "}";
}
}
}