//------------------------------------------------------------------------------ // // 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 TableConfig { public sealed partial class Item : Luban.BeanBase { public Item(JSONNode _buf) { { if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; } { if(!_buf["Num"].IsNumber) { throw new SerializationException(); } Num = _buf["Num"]; } } public static Item DeserializeItem(JSONNode _buf) { return new Item(_buf); } /// /// 道具id /// public readonly int Id; /// /// 道具数量 /// public readonly int Num; public const int __ID__ = 2289459; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "Id:" + Id + "," + "Num:" + Num + "," + "}"; } } }