//------------------------------------------------------------------------------ // // 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 Luban; using SimpleJSON; namespace cfg.BlacksmithData { public sealed partial class ItemData : Luban.BeanBase { public ItemData(JSONNode _buf) { { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } { if(!_buf["Propname"].IsString) { throw new SerializationException(); } Propname = _buf["Propname"]; } { if(!_buf["Propprices"].IsNumber) { throw new SerializationException(); } Propprices = _buf["Propprices"]; } { if(!_buf["Itemprice"].IsNumber) { throw new SerializationException(); } Itemprice = _buf["Itemprice"]; } { if(!_buf["Includearms"].IsNumber) { throw new SerializationException(); } Includearms = _buf["Includearms"]; } { if(!_buf["Proptype"].IsNumber) { throw new SerializationException(); } Proptype = _buf["Proptype"]; } { if(!_buf["Propquality"].IsNumber) { throw new SerializationException(); } Propquality = _buf["Propquality"]; } { if(!_buf["Icon"].IsString) { throw new SerializationException(); } Icon = _buf["Icon"]; } { if(!_buf["Propdescription"].IsNumber) { throw new SerializationException(); } Propdescription = _buf["Propdescription"]; } { if(!_buf["Forgingprogress"].IsNumber) { throw new SerializationException(); } Forgingprogress = _buf["Forgingprogress"]; } { if(!_buf["Forgingprogressda"].IsNumber) { throw new SerializationException(); } Forgingprogressda = _buf["Forgingprogressda"]; } { var __json0 = _buf["NPC"]; if(!__json0.IsArray) { throw new SerializationException(); } NPC = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } NPC.Add(__v0); } } } public static ItemData DeserializeItemData(JSONNode _buf) { return new BlacksmithData.ItemData(_buf); } /// /// #ID /// public readonly int ID; /// /// 道具名称 /// public readonly string Propname; /// /// 道具价格 /// public readonly int Propprices; /// /// 给与客户价格 /// public readonly int Itemprice; /// /// 所在类型 /// public readonly int Includearms; /// /// 道具类型 /// public readonly int Proptype; /// /// 道具品质 /// public readonly int Propquality; /// /// 道具图标 /// public readonly string Icon; /// /// 道具说明 /// public readonly int Propdescription; /// /// 锻造该材料的总进度条 /// public readonly int Forgingprogress; /// /// 锻造该材料的大增加万分比 /// public readonly int Forgingprogressda; /// /// 对应Npc /// public readonly System.Collections.Generic.List NPC; public const int __ID__ = 269279773; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Propname:" + Propname + "," + "Propprices:" + Propprices + "," + "Itemprice:" + Itemprice + "," + "Includearms:" + Includearms + "," + "Proptype:" + Proptype + "," + "Propquality:" + Propquality + "," + "Icon:" + Icon + "," + "Propdescription:" + Propdescription + "," + "Forgingprogress:" + Forgingprogress + "," + "Forgingprogressda:" + Forgingprogressda + "," + "NPC:" + Luban.StringUtil.CollectionToString(NPC) + "," + "}"; } } }