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