Files
back_cantanBuilding/Assets/Scripts/Tables/Resource.cs
2026-05-26 16:15:54 +08:00

76 lines
1.9 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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
/// <summary>
/// 资源道具
/// </summary>
public sealed partial class Resource : DiggingItemProp
{
public Resource(JSONNode _json) : base(_json)
{
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
{ if(!_json["Param"].IsNumber) { throw new SerializationException(); } Param = _json["Param"]; }
PostInit();
}
public Resource(int ItemID, int Param ) : base()
{
this.ItemID = ItemID;
this.Param = Param;
PostInit();
}
public static Resource DeserializeResource(JSONNode _json)
{
return new Resource(_json);
}
/// <summary>
/// 物品道具编号
/// </summary>
public int ItemID { get; private set; }
/// <summary>
/// 物品道具掉落数量
/// </summary>
public int Param { get; private set; }
public const int __ID__ = -276420562;
public override int GetTypeId() => __ID__;
public override void Resolve(Dictionary<string, object> _tables)
{
base.Resolve(_tables);
PostResolve();
}
public override void TranslateText(System.Func<string, string, string> translator)
{
base.TranslateText(translator);
}
public override string ToString()
{
return "{ "
+ "ItemID:" + ItemID + ","
+ "Param:" + Param + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}