//------------------------------------------------------------------------------ // // 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 Item : Luban.BeanBase { public Item(JSONNode _buf) { { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } { if(!_buf["source"].IsString) { throw new SerializationException(); } Source = _buf["source"]; } } public static Item DeserializeItem(JSONNode _buf) { return new data.Item(_buf); } /// /// id /// public readonly int Id; /// /// 名称 /// public readonly string Name; /// /// 资源名 /// public readonly string Source; public const int __ID__ = -409898249; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "source:" + Source + "," + "}"; } } }