//------------------------------------------------------------------------------
// <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 GameConfig.TbGEntity
{
/// <summary>
/// 资源信息
/// </summary>
public sealed partial class TResource : Luban.BeanBase
{
    public TResource(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        Value = _buf.ReadInt();
    }

    public static TResource DeserializeTResource(ByteBuf _buf)
    {
        return new TbGEntity.TResource(_buf);
    }

    /// <summary>
    /// 资源Id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 资源数量
    /// </summary>
    public readonly int Value;
   
    public const int __ID__ = 125240784;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
        
        
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "value:" + Value + ","
        + "}";
    }
}

}