I18nDatabaseTable.cs 1.6 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> I18nDatabase </summary>
  8. public sealed class I18nDatabaseTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 编号 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 关键字 </summary>
  14. public string Key { get; private set; }
  15. /// <summary> 简体中文 </summary>
  16. public string Zh_cn { get; private set; }
  17. /// <summary> 英文 </summary>
  18. public string Us { get; private set; }
  19. /// <summary> 韩文 </summary>
  20. public string Kr { get; private set; }
  21. /// <summary> 繁体中文 </summary>
  22. public string Zh_tw { get; private set; }
  23. /// <summary> 日语 </summary>
  24. public string Jp { get; private set; }
  25. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Key = reader.ReadString();
  29. Zh_cn = reader.ReadString();
  30. Us = reader.ReadString();
  31. Kr = reader.ReadString();
  32. Zh_tw = reader.ReadString();
  33. Jp = reader.ReadString();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Key);
  39. writer.Write(Zh_cn);
  40. writer.Write(Us);
  41. writer.Write(Kr);
  42. writer.Write(Zh_tw);
  43. writer.Write(Jp);
  44. }
  45. }
  46. }