hdActivityTable.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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> hdActivity </summary>
  8. public sealed class hdActivityTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 活动id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 顺序 </summary>
  14. public int Sort { get; private set; }
  15. /// <summary> 所属位置,0左,1右 </summary>
  16. public int Pos { get; private set; }
  17. /// <summary> 功能开启id </summary>
  18. public int Kaiqi { get; private set; }
  19. /// <summary> 图标 </summary>
  20. public string Icon { get; private set; }
  21. /// <summary> 是否隐藏 </summary>
  22. public int IsHide { get; private set; }
  23. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Sort = reader.ReadInt();
  27. Pos = reader.ReadInt();
  28. Kaiqi = reader.ReadInt();
  29. Icon = reader.ReadString();
  30. IsHide = reader.ReadInt();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Sort);
  36. writer.Write(Pos);
  37. writer.Write(Kaiqi);
  38. writer.Write(Icon);
  39. writer.Write(IsHide);
  40. }
  41. }
  42. }