tiaozhanTable.cs 1.5 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> tiaozhan </summary>
  8. public sealed class tiaozhanTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 挑战类型1=三星通关2=组队通关3=单人通关 </summary>
  14. public int Type { get; private set; }
  15. /// <summary> 挑战条件多少秒内通关 </summary>
  16. public int Time { get; private set; }
  17. /// <summary> 挑战任务名称 </summary>
  18. public string Name { get; private set; }
  19. /// <summary> 挑战任务描述 </summary>
  20. public string Desc { get; private set; }
  21. /// <summary> 关联副本id </summary>
  22. public int Copysktlid { get; private set; }
  23. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Type = reader.ReadInt();
  27. Time = reader.ReadInt();
  28. Name = reader.ReadString();
  29. Desc = reader.ReadString();
  30. Copysktlid = reader.ReadInt();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Type);
  36. writer.Write(Time);
  37. writer.Write(Name);
  38. writer.Write(Desc);
  39. writer.Write(Copysktlid);
  40. }
  41. }
  42. }