AttrDescTable.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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> AttrDesc </summary>
  8. public sealed class AttrDescTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 属性ID </summary>
  12. public int Id { get; private set; } // sc
  13. /// <summary> 属性名称 </summary>
  14. public string Name { get; private set; } // c
  15. /// <summary> 属性名称 </summary>
  16. public string ShowName { get; private set; } // c
  17. /// <summary> 0:固定值1:万分比 </summary>
  18. public int Num_type { get; private set; } // sc
  19. /// <summary> 上限值(万分比)0:不限制 </summary>
  20. public int Upper { get; private set; } // sc
  21. /// <summary> 图标 </summary>
  22. public string Icon { get; private set; } // c
  23. /// <summary> 转化战力战力系数/10000 </summary>
  24. public int PowerConversion { get; private set; } // sc
  25. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Name = reader.ReadString();
  29. ShowName = reader.ReadString();
  30. Num_type = reader.ReadInt();
  31. Upper = reader.ReadInt();
  32. Icon = reader.ReadString();
  33. PowerConversion = reader.ReadInt();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Name);
  39. writer.Write(ShowName);
  40. writer.Write(Num_type);
  41. writer.Write(Upper);
  42. writer.Write(Icon);
  43. writer.Write(PowerConversion);
  44. }
  45. }
  46. }