guildMonsterTable.cs 970 B

12345678910111213141516171819202122232425262728293031323334353637
  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> guildMonster </summary>
  8. public sealed class guildMonsterTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能ID1000*100+血量层数*10 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 怪物id </summary>
  14. public int MonsterId { get; private set; }
  15. /// <summary> 血量重数 </summary>
  16. public int Hp { get; private set; }
  17. void ISerializable.Deserialize(IReader reader)
  18. {
  19. Id = reader.ReadInt();
  20. MonsterId = reader.ReadInt();
  21. Hp = reader.ReadInt();
  22. }
  23. void ISerializable.Serialize(IWriter writer)
  24. {
  25. writer.Write(Id);
  26. writer.Write(MonsterId);
  27. writer.Write(Hp);
  28. }
  29. }
  30. }