equipmentTable.cs 1.8 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> Equipment </summary>
  8. public sealed class EquipmentTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 部位*100000+类型*10000+品质*100+序号定制ID:1000000+部位*100000+类型*10000+品质*100+序号 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 名称 </summary>
  14. public string Name { get; private set; } // c
  15. /// <summary> 1普通:正常掉落2活动:定制 </summary>
  16. public int Type { get; private set; } // c
  17. /// <summary> 生成等级0:跟随角色(对应类型的1)非0:定制到对应等级 </summary>
  18. public int Level { get; private set; }
  19. /// <summary> 部位1:武器2:头3:衣服4:手5:裤子6:鞋子 </summary>
  20. public EEquipType Part { get; private set; } // sc
  21. /// <summary> 品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:蓝钻10:鎏金11:璀璨 </summary>
  22. public EQualityLevel Quality { get; private set; } // sc
  23. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Name = reader.ReadString();
  27. Type = reader.ReadInt();
  28. Level = reader.ReadInt();
  29. Part = (EEquipType)reader.ReadInt();
  30. Quality = (EQualityLevel)reader.ReadInt();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Name);
  36. writer.Write(Type);
  37. writer.Write(Level);
  38. writer.Write((int)Part);
  39. writer.Write((int)Quality);
  40. }
  41. }
  42. }