//------------------------------------------------------------------------------ // // 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 PopPromptbox : Luban.BeanBase { public PopPromptbox(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["txt"].IsString) { throw new SerializationException(); } Txt = _buf["txt"]; } } public static PopPromptbox DeserializePopPromptbox(JSONNode _buf) { return new data.PopPromptbox(_buf); } /// /// id /// public readonly int Id; /// /// 名称(只是方便查看) /// public readonly string Name; /// /// 名称id /// public readonly int NameId; /// /// 折扣文本 /// public readonly string Txt; public const int __ID__ = 1095517818; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "nameId:" + NameId + "," + "txt:" + Txt + "," + "}"; } } }