PartnerTable.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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> Partner </summary>
  8. public sealed class PartnerTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 20000+类型*100+品质*10+序号 </summary>
  12. public int Id { get; private set; } // sc
  13. public string Name { get; private set; } // c
  14. public string Icon { get; private set; } // c
  15. public string Desc { get; private set; } // c
  16. /// <summary> 1:剑 2:锤 3:斧 4:匕首 5:法杖 </summary>
  17. public int Type { get; private set; } // sc
  18. /// <summary> 1:白2:绿3:蓝4:紫5:橙6:红7:彩 </summary>
  19. public int Quality { get; private set; } // sc
  20. /// <summary> 0:无1:活动 </summary>
  21. public int Label { get; private set; } // c
  22. /// <summary> 属性名称1,属性值,属性名称2,属性值…… </summary>
  23. public int[] Base_attr { get; private set; } // sc
  24. /// <summary> 技能id </summary>
  25. public int Skill { get; private set; } // sc
  26. /// <summary> 属性名称1,属性值,属性名称2,属性值…… </summary>
  27. public int[] Own_attr { get; private set; } // sc
  28. /// <summary> 模型 </summary>
  29. public string Model { get; private set; } // c
  30. /// <summary> 尺寸 </summary>
  31. public float Size { get; private set; } // c
  32. void ISerializable.Deserialize(IReader reader)
  33. {
  34. Id = reader.ReadInt();
  35. Name = reader.ReadString();
  36. Icon = reader.ReadString();
  37. Desc = reader.ReadString();
  38. Type = reader.ReadInt();
  39. Quality = reader.ReadInt();
  40. Label = reader.ReadInt();
  41. Base_attr = reader.ReadEnumerable<int[]>();
  42. Skill = reader.ReadInt();
  43. Own_attr = reader.ReadEnumerable<int[]>();
  44. Model = reader.ReadString();
  45. Size = reader.ReadFloat();
  46. }
  47. void ISerializable.Serialize(IWriter writer)
  48. {
  49. writer.Write(Id);
  50. writer.Write(Name);
  51. writer.Write(Icon);
  52. writer.Write(Desc);
  53. writer.Write(Type);
  54. writer.Write(Quality);
  55. writer.Write(Label);
  56. writer.Write(Base_attr);
  57. writer.Write(Skill);
  58. writer.Write(Own_attr);
  59. writer.Write(Model);
  60. writer.Write(Size);
  61. }
  62. }
  63. }