equipmentBaseAttrTable.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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> EquipmentBaseAttr </summary>
  8. public sealed class EquipmentBaseAttrTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id品质*100000+部位*1000+等级 </summary>
  12. public int Id { get; private set; } // sc
  13. /// <summary> 品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:蓝钻10:鎏金11:璀璨 </summary>
  14. public EQualityLevel Quality { get; private set; } // sc
  15. /// <summary> 1:武器2:其他 </summary>
  16. public int Type { get; private set; } // sc
  17. /// <summary> 装备等级 </summary>
  18. public int Level { get; private set; } // sc
  19. /// <summary> 生命 </summary>
  20. public int[] Hp { get; private set; } // sc
  21. /// <summary> 攻击 </summary>
  22. public int[] Atk { get; private set; } // sc
  23. /// <summary> 防御 </summary>
  24. public int[] Def { get; private set; } // sc
  25. /// <summary> 攻速攻速=值/10000 </summary>
  26. public int AtkSpeek { get; private set; } // sc
  27. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Quality = (EQualityLevel)reader.ReadInt();
  31. Type = reader.ReadInt();
  32. Level = reader.ReadInt();
  33. Hp = reader.ReadEnumerable<int[]>();
  34. Atk = reader.ReadEnumerable<int[]>();
  35. Def = reader.ReadEnumerable<int[]>();
  36. AtkSpeek = reader.ReadInt();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write((int)Quality);
  42. writer.Write(Type);
  43. writer.Write(Level);
  44. writer.Write(Hp);
  45. writer.Write(Atk);
  46. writer.Write(Def);
  47. writer.Write(AtkSpeek);
  48. }
  49. }
  50. }