//------------------------------------------------------------------------------ // // 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.data { public sealed partial class Store : Luban.BeanBase { public Store(JSONNode _buf) { { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } { if(!_buf["name_id"].IsNumber) { throw new SerializationException(); } NameId = _buf["name_id"]; } { if(!_buf["order"].IsNumber) { throw new SerializationException(); } Order = _buf["order"]; } { if(!_buf["discount"].IsString) { throw new SerializationException(); } Discount = _buf["discount"]; } { if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = _buf["type"]; } { if(!_buf["buy_consume"].IsNumber) { throw new SerializationException(); } BuyConsume = _buf["buy_consume"]; } { if(!_buf["money"].IsNumber) { throw new SerializationException(); } Money = _buf["money"]; } { if(!_buf["item_id"].IsNumber) { throw new SerializationException(); } ItemId = _buf["item_id"]; } { if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; } { if(!_buf["underline_count"].IsNumber) { throw new SerializationException(); } UnderlineCount = _buf["underline_count"]; } } public static Store DeserializeStore(JSONNode _buf) { return new data.Store(_buf); } /// /// id /// public readonly int Id; /// /// 名称(只是方便查看) /// public readonly string Name; /// /// 名称id /// public readonly int NameId; /// /// 顺序优先级 /// public readonly int Order; /// /// 折扣文本 /// public readonly string Discount; /// /// 类型 /// public readonly int Type; /// /// 购买消耗 /// public readonly int BuyConsume; /// /// 价格 /// public readonly int Money; /// /// 道具id /// public readonly int ItemId; /// /// 商品数量 /// public readonly int Count; /// /// 划线数量 /// public readonly int UnderlineCount; public const int __ID__ = 187301245; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "nameId:" + NameId + "," + "order:" + Order + "," + "discount:" + Discount + "," + "type:" + Type + "," + "buyConsume:" + BuyConsume + "," + "money:" + Money + "," + "itemId:" + ItemId + "," + "count:" + Count + "," + "underlineCount:" + UnderlineCount + "," + "}"; } } }