74 lines
1.7 KiB
C#
74 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 Bright.Serialization;
|
|
using System.Collections.Generic;
|
|
using SimpleJSON;
|
|
|
|
|
|
|
|
namespace cfg.item
|
|
{
|
|
|
|
/// <summary>
|
|
/// 道具
|
|
/// </summary>
|
|
public sealed partial class ItemCounts : Bright.Config.BeanBase
|
|
{
|
|
public ItemCounts(JSONNode _json)
|
|
{
|
|
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
|
|
{ if(!_json["Count"].IsNumber) { throw new SerializationException(); } Count = _json["Count"]; }
|
|
PostInit();
|
|
}
|
|
|
|
public ItemCounts(int Id, int Count )
|
|
{
|
|
this.Id = Id;
|
|
this.Count = Count;
|
|
PostInit();
|
|
}
|
|
|
|
public static ItemCounts DeserializeItemCounts(JSONNode _json)
|
|
{
|
|
return new item.ItemCounts(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 道具ID
|
|
/// </summary>
|
|
public int Id { get; private set; }
|
|
/// <summary>
|
|
/// 道具数目
|
|
/// </summary>
|
|
public int Count { get; private set; }
|
|
|
|
public const int __ID__ = 660882450;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "Id:" + Id + ","
|
|
+ "Count:" + Count + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|