item.ItemExchange.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Changes to this file may cause incorrect behavior and will be lost if
  5. // the code is regenerated.
  6. // </auto-generated>
  7. //------------------------------------------------------------------------------
  8. using Luban;
  9. using SimpleJSON;
  10. namespace cfg.item
  11. {
  12. public sealed partial class ItemExchange : Luban.BeanBase
  13. {
  14. public ItemExchange(JSONNode _buf)
  15. {
  16. { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
  17. { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; }
  18. }
  19. public static ItemExchange DeserializeItemExchange(JSONNode _buf)
  20. {
  21. return new item.ItemExchange(_buf);
  22. }
  23. /// <summary>
  24. /// 道具id
  25. /// </summary>
  26. public readonly int Id;
  27. /// <summary>
  28. /// 道具数量
  29. /// </summary>
  30. public readonly int Num;
  31. public const int __ID__ = 1814660465;
  32. public override int GetTypeId() => __ID__;
  33. public void ResolveRef(Tables tables)
  34. {
  35. }
  36. public override string ToString()
  37. {
  38. return "{ "
  39. + "id:" + Id + ","
  40. + "num:" + Num + ","
  41. + "}";
  42. }
  43. }
  44. }