EpigraphTable.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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> Epigraph </summary>
  8. public sealed class EpigraphTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 铭文ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 图标 </summary>
  14. public string Icon { get; private set; } // c
  15. /// <summary> 名字 </summary>
  16. public string Name { get; private set; } // c
  17. /// <summary> 描述 </summary>
  18. public string Desc { get; private set; } // c
  19. /// <summary> 2:绿3:蓝4:紫6:橙7:红8:粉9:彩11:鎏金12:炫彩 </summary>
  20. public EQualityLevel Quality { get; private set; } // c
  21. /// <summary> 元素系1:火2:雷3:冰4:毒5:风0:无元素 </summary>
  22. public EElementType Element { get; private set; }
  23. /// <summary> 效果参数 </summary>
  24. public int[] EffectArgs { get; private set; }
  25. /// <summary> 铭文小图标 </summary>
  26. public string Icon2 { get; private set; } // c
  27. /// <summary> 技能id,星级条件 </summary>
  28. public int[] Skill { get; private set; } // sc
  29. /// <summary> 拥有属性属性名称1,属性值,属性名称2,属性值…… </summary>
  30. public int[] Own_attr { get; private set; } // sc
  31. void ISerializable.Deserialize(IReader reader)
  32. {
  33. Id = reader.ReadInt();
  34. Icon = reader.ReadString();
  35. Name = reader.ReadString();
  36. Desc = reader.ReadString();
  37. Quality = (EQualityLevel)reader.ReadInt();
  38. Element = (EElementType)reader.ReadInt();
  39. EffectArgs = reader.ReadEnumerable<int[]>();
  40. Icon2 = reader.ReadString();
  41. Skill = reader.ReadEnumerable<int[]>();
  42. Own_attr = reader.ReadEnumerable<int[]>();
  43. }
  44. void ISerializable.Serialize(IWriter writer)
  45. {
  46. writer.Write(Id);
  47. writer.Write(Icon);
  48. writer.Write(Name);
  49. writer.Write(Desc);
  50. writer.Write((int)Quality);
  51. writer.Write((int)Element);
  52. writer.Write(EffectArgs);
  53. writer.Write(Icon2);
  54. writer.Write(Skill);
  55. writer.Write(Own_attr);
  56. }
  57. }
  58. }