Files
vampire-like/Assets/GameMain/Scripts/Base/Gen/GoodsConfig.cs
T

72 lines
1.7 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 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);
}
/// <summary>
/// 商品编号
/// </summary>
public readonly int Id;
/// <summary>
/// 商品类型
/// </summary>
public readonly GoodsType GoodsType;
/// <summary>
/// 道具商品Id
/// </summary>
public readonly int PropId;
public PropConfig PropId_Ref;
/// <summary>
/// 武器商品类型
/// </summary>
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 + ","
+ "}";
}
}
}