//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Bright.Serialization; using System.Collections.Generic; using SimpleJSON; namespace cfg { /// /// 资源道具 /// 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); } /// /// 物品道具编号 /// public int ItemID { get; private set; } /// /// 物品道具掉落数量 /// public int Param { get; private set; } public const int __ID__ = -276420562; public override int GetTypeId() => __ID__; public override void Resolve(Dictionary _tables) { base.Resolve(_tables); PostResolve(); } public override void TranslateText(System.Func translator) { base.TranslateText(translator); } public override string ToString() { return "{ " + "ItemID:" + ItemID + "," + "Param:" + Param + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }