Arme.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "armes")]
  6. public class Arme : BaseEntity
  7. {
  8. [XmlAttribute(AttributeName = "id")]
  9. public string Id { get; set; }
  10. [XmlAttribute(AttributeName = "nom")]
  11. public string? Nom { get; set; }
  12. [XmlAttribute(AttributeName = "genre")]
  13. public string? Genre { get; set; }
  14. [XmlAttribute(AttributeName = "type")]
  15. public string? Type { get; set; }
  16. [XmlAttribute(AttributeName = "groupe")]
  17. public string? Groupe { get; set; }
  18. [XmlAttribute(AttributeName = "portée")]
  19. public string Portée { get; set; }
  20. [XmlAttribute(AttributeName = "modes")]
  21. public string? Modes { get; set; }
  22. [XmlAttribute(AttributeName = "dégâts")]
  23. public string? Dégâts { get; set; }
  24. [XmlAttribute(AttributeName = "type_dégâts")]
  25. public string? TypeDégâts { get; set; }
  26. [XmlAttribute(AttributeName = "pénétration")]
  27. public string Pénétration { get; set; }
  28. [XmlAttribute(AttributeName = "autonomie")]
  29. public string Autonomie { get; set; }
  30. [XmlAttribute(AttributeName = "rechargement")]
  31. public string Rechargement { get; set; }
  32. [XmlAttribute(AttributeName = "attributs")]
  33. public string? Attributs { get; set; }
  34. [XmlAttribute(AttributeName = "accessoires")]
  35. public string? Accessoires { get; set; }
  36. [XmlAttribute(AttributeName = "poids")]
  37. public string Poids { get; set; }
  38. [XmlAttribute(AttributeName = "bonus_bf")]
  39. public int BonusBf { get; set; }
  40. [XmlAttribute(AttributeName = "prix")]
  41. public int Prix { get; set; }
  42. [XmlAttribute(AttributeName = "disponibilité")]
  43. public string? Disponibilité { get; set; }
  44. [XmlAttribute(AttributeName = "description")]
  45. public string? Description { get; set; }
  46. [XmlIgnore] public int ArmeId { get; set; }
  47. }
  48. }