
//------------------------------------------------------------------------------
// <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 Server.Config
{
public sealed partial class ResConfig : Luban.BeanBase
{
    public ResConfig(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        Name = _buf.ReadString();
        ResType = _buf.ReadInt();
    }

    public static ResConfig DeserializeResConfig(ByteBuf _buf)
    {
        return new ResConfig(_buf);
    }

    /// <summary>
    /// 资源ID(大于100000一定是道具)
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 资源名称
    /// </summary>
    public readonly string Name;
    /// <summary>
    /// 1 (原始货币, 历史遗留问题)<br/>2 道具<br/>3 活动道具(限时)
    /// </summary>
    public readonly int ResType;
   
    public const int __ID__ = -1244442654;
    public override int GetTypeId() => __ID__;


    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "name:" + Name + ","
        + "resType:" + ResType + ","
        + "}";
    }
}

}
