ItemTable.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Database;
  4. using XGame.Framework.Serialization;
  5. namespace XGame.Database
  6. {
  7. /// <summary> Item </summary>
  8. public sealed class ItemTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. public int Id { get; private set; }
  12. /// <summary> 0:资源类1:代币类2:常规道具3:宝箱4:礼包类5:头衔6:外观7:特权卡8:红包9:符石10:装备11:飞剑12:技能13:坐骑14:混沌秘宝15:元素核心 </summary>
  13. public int Type { get; private set; }
  14. /// <summary> 0:无1:获取时自动开启2:手动开启 </summary>
  15. public int Subtype { get; private set; }
  16. public string Name { get; private set; }
  17. public string Desc { get; private set; }
  18. public string Icon { get; private set; }
  19. public EQualityLevel Quality { get; private set; }
  20. /// <summary> [1,加速时间][3,经验,积分] </summary>
  21. public int[] Effect { get; private set; }
  22. /// <summary> 回收价格 </summary>
  23. public int RecyclingPrices { get; private set; }
  24. /// <summary> 时效 </summary>
  25. public int Duration { get; private set; }
  26. /// <summary> 前往跳转 </summary>
  27. public int[] Jump { get; private set; } // c
  28. /// <summary> 功能类型(用于特殊道具处理)1=公会2=主线关卡3=副本4=家园 </summary>
  29. public int SystemsType { get; private set; }
  30. void ISerializable.Deserialize(IReader reader)
  31. {
  32. Id = reader.ReadInt();
  33. Type = reader.ReadInt();
  34. Subtype = reader.ReadInt();
  35. Name = reader.ReadString();
  36. Desc = reader.ReadString();
  37. Icon = reader.ReadString();
  38. Quality = (EQualityLevel)reader.ReadInt();
  39. Effect = reader.ReadEnumerable<int[]>();
  40. RecyclingPrices = reader.ReadInt();
  41. Duration = reader.ReadInt();
  42. Jump = reader.ReadEnumerable<int[]>();
  43. SystemsType = reader.ReadInt();
  44. }
  45. void ISerializable.Serialize(IWriter writer)
  46. {
  47. writer.Write(Id);
  48. writer.Write(Type);
  49. writer.Write(Subtype);
  50. writer.Write(Name);
  51. writer.Write(Desc);
  52. writer.Write(Icon);
  53. writer.Write((int)Quality);
  54. writer.Write(Effect);
  55. writer.Write(RecyclingPrices);
  56. writer.Write(Duration);
  57. writer.Write(Jump);
  58. writer.Write(SystemsType);
  59. }
  60. }
  61. }