PartnerTable.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. /// <summary> 元素系1:火2:雷3:冰4:毒5:风0:无元素 </summary>
  16. public EElementType Element { get; private set; } // c
  17. /// <summary> 1:剑 2:锤 3:斧 4:匕首 5:法杖 </summary>
  18. public int Type { get; private set; } // sc
  19. /// <summary> 1:白2:绿3:蓝4:紫5:橙6:红7:彩 </summary>
  20. public int Quality { get; private set; } // sc
  21. /// <summary> 0:无1:活动 </summary>
  22. public int Label { get; private set; } // c
  23. /// <summary> 基础属性属性名称1,属性值,属性名称2,属性值…… </summary>
  24. public int[] Base_attr { get; private set; } // sc
  25. /// <summary> 技能id,星级条件 </summary>
  26. public int[] Skill { get; private set; } // sc
  27. /// <summary> 拥有属性属性名称1,属性值,属性名称2,属性值…… </summary>
  28. public int[] Own_attr { get; private set; } // sc
  29. /// <summary> 模型 </summary>
  30. public string Model { get; private set; } // c
  31. /// <summary> 尺寸 </summary>
  32. public float Size { get; private set; } // c
  33. /// <summary> 圣兵小图标 </summary>
  34. public string Icon2 { get; private set; }
  35. void ISerializable.Deserialize(IReader reader)
  36. {
  37. Id = reader.ReadInt();
  38. Name = reader.ReadString();
  39. Icon = reader.ReadString();
  40. Element = (EElementType)reader.ReadInt();
  41. Type = reader.ReadInt();
  42. Quality = reader.ReadInt();
  43. Label = reader.ReadInt();
  44. Base_attr = reader.ReadEnumerable<int[]>();
  45. Skill = reader.ReadEnumerable<int[]>();
  46. Own_attr = reader.ReadEnumerable<int[]>();
  47. Model = reader.ReadString();
  48. Size = reader.ReadFloat();
  49. Icon2 = reader.ReadString();
  50. }
  51. void ISerializable.Serialize(IWriter writer)
  52. {
  53. writer.Write(Id);
  54. writer.Write(Name);
  55. writer.Write(Icon);
  56. writer.Write((int)Element);
  57. writer.Write(Type);
  58. writer.Write(Quality);
  59. writer.Write(Label);
  60. writer.Write(Base_attr);
  61. writer.Write(Skill);
  62. writer.Write(Own_attr);
  63. writer.Write(Model);
  64. writer.Write(Size);
  65. writer.Write(Icon2);
  66. }
  67. }
  68. }