infoTable.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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> info </summary>
  8. public sealed class infoTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 功能名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 开启类型"1=关卡ID2=角色等级3=开服天数4=转职次数5=保留任务" </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 开启参数 </summary>
  18. public int Param { get; private set; }
  19. /// <summary> 错误提示 </summary>
  20. public string Tip { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. Name = reader.ReadString();
  25. Type = reader.ReadInt();
  26. Param = reader.ReadInt();
  27. Tip = reader.ReadString();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(Name);
  33. writer.Write(Type);
  34. writer.Write(Param);
  35. writer.Write(Tip);
  36. }
  37. }
  38. }