//------------------------------------------------------------------------------ // // 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 PropItemTable : Luban.BeanBase { public PropItemTable(JSONNode _buf) { { if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; } { if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; } { if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (PropItemType)_buf["Type"].AsInt; } { if(!_buf["Description"].IsString) { throw new SerializationException(); } Description = _buf["Description"]; } { if(!_buf["Icon"].IsString) { throw new SerializationException(); } Icon = _buf["Icon"]; } { if(!_buf["Quality"].IsNumber) { throw new SerializationException(); } Quality = _buf["Quality"]; } { if(!_buf["Occupy"].IsBoolean) { throw new SerializationException(); } Occupy = _buf["Occupy"]; } } public static PropItemTable DeserializePropItemTable(JSONNode _buf) { return new PropItemTable(_buf); } /// /// 道具id /// public readonly int Id; /// /// 道具名称 /// public readonly string Name; /// /// 道具类型 /// public readonly PropItemType Type; /// /// 道具描述 /// public readonly string Description; /// /// 道具图标 /// public readonly string Icon; /// /// 道具品质 /// public readonly int Quality; /// /// 是否占用背包 /// public readonly bool Occupy; public const int __ID__ = 1552388152; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "Id:" + Id + "," + "Name:" + Name + "," + "Type:" + Type + "," + "Description:" + Description + "," + "Icon:" + Icon + "," + "Quality:" + Quality + "," + "Occupy:" + Occupy + "," + "}"; } } }