Root.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. using Azure;
  2. using Domain.XML_Model;
  3. using Domain;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Xml.Serialization;
  6. namespace Domain.XML_Model
  7. {
  8. // using System.Xml.Serialization;
  9. // XmlSerializer serializer = new XmlSerializer(typeof(Root));
  10. // using (StringReader reader = new StringReader(xml))
  11. // {
  12. // var test = (Root)serializer.Deserialize(reader);
  13. // }
  14. [Serializable]
  15. //[XmlRoot(ElementName = "extensions")]
  16. public class Extension : BaseEntity
  17. {
  18. [XmlAttribute(AttributeName = "id")]
  19. public string Id { get; set; }
  20. [XmlAttribute(AttributeName = "nom")]
  21. public string? Nom { get; set; }
  22. }
  23. [Serializable]
  24. [XmlRoot(ElementName = "accessoires")]
  25. public class Accessoire : BaseEntity
  26. {
  27. [XmlAttribute(AttributeName = "id")]
  28. public string Id { get; set; }
  29. [XmlAttribute(AttributeName = "nom")]
  30. public string? Nom { get; set; }
  31. [XmlAttribute(AttributeName = "modif_poids")]
  32. public string? ModifPoids { get; set; }
  33. [XmlAttribute(AttributeName = "prix")]
  34. public int Prix { get; set; }
  35. [XmlAttribute(AttributeName = "disponibilité")]
  36. public string? Disponibilité { get; set; }
  37. [XmlAttribute(AttributeName = "effet")]
  38. public string? Effet { get; set; }
  39. [XmlAttribute(AttributeName = "description")]
  40. public string? Description { get; set; }
  41. [XmlIgnoreAttribute] public int AccessoireId { get; set; }
  42. }
  43. [Serializable]
  44. //[XmlRoot(ElementName = "améliorations")]
  45. public class Amélioration : BaseEntity
  46. {
  47. [XmlAttribute(AttributeName = "id")]
  48. public string Id { get; set; }
  49. [XmlAttribute(AttributeName = "catégorie")]
  50. public string? Catégorie { get; set; }
  51. [XmlAttribute(AttributeName = "souscatégorie")]
  52. public string? Souscatégorie { get; set; }
  53. [XmlAttribute(AttributeName = "promotion")]
  54. public int Promotion { get; set; }
  55. [XmlAttribute(AttributeName = "type")]
  56. public string? Type { get; set; }
  57. [XmlAttribute(AttributeName = "nom")]
  58. public string? Nom { get; set; }
  59. [XmlAttribute(AttributeName = "cout")]
  60. public int Cout { get; set; }
  61. [XmlAttribute(AttributeName = "nb_max_ou_rang")]
  62. public int NbMaxOuRang { get; set; }
  63. [XmlAttribute(AttributeName = "condition")]
  64. public string? Condition { get; set; }
  65. [XmlIgnore] public int AméliorationId { get; set; }
  66. }
  67. [Serializable]
  68. [XmlRoot(ElementName = "archétypes")]
  69. public class Archétype : BaseEntity
  70. {
  71. [XmlAttribute(AttributeName = "id")]
  72. public string Id { get; set; }
  73. [XmlAttribute(AttributeName = "nom")]
  74. public string? Nom { get; set; }
  75. [XmlAttribute(AttributeName = "caractéristiques")]
  76. public string? Caractéristiques { get; set; }
  77. [XmlAttribute(AttributeName = "mouvement")]
  78. public string? Mouvement { get; set; }
  79. [XmlAttribute(AttributeName = "blessures")]
  80. public int Blessures { get; set; }
  81. [XmlAttribute(AttributeName = "traits")]
  82. public string? Traits { get; set; }
  83. //[XmlAttribute(AttributeName = "traits")]
  84. //public string? TraitsAsText {
  85. // get { return (Traits.HasValue) ? Traits.ToString() : null; }
  86. // set { Traits = !string?.IsNullOrEmpty(value) ? int.Parse(value) : default(int?); }
  87. //}
  88. [XmlAttribute(AttributeName = "competences")]
  89. public string? Competences { get; set; }
  90. [XmlAttribute(AttributeName = "talents")]
  91. public string? Talents { get; set; }
  92. [XmlAttribute(AttributeName = "pouvoirs")]
  93. public string? Pouvoirs { get; set; }
  94. //[XmlAttribute(AttributeName = "pouvoirs")]
  95. //public string? PouvoirsAsText
  96. //{
  97. // get { return (Pouvoirs.HasValue) ? Pouvoirs.ToString() : null; }
  98. // set { Pouvoirs = !string?.IsNullOrEmpty(value) ? int.Parse(value) : default(int?); }
  99. //}
  100. [XmlAttribute(AttributeName = "armures")]
  101. public string? Armures { get; set; }
  102. [XmlAttribute(AttributeName = "armes")]
  103. public string? Armes { get; set; }
  104. [XmlAttribute(AttributeName = "equipement")]
  105. public string? Equipement { get; set; }
  106. [XmlAttribute(AttributeName = "menace")]
  107. public string? Menace { get; set; }
  108. [XmlAttribute(AttributeName = "description")]
  109. public string? Description { get; set; }
  110. [XmlIgnoreAttribute] public int ArchétypeId { get; set; }
  111. }
  112. [Serializable]
  113. [XmlRoot(ElementName = "armes")]
  114. public class Arme : BaseEntity
  115. {
  116. [XmlAttribute(AttributeName = "id")]
  117. public string Id { get; set; }
  118. [XmlAttribute(AttributeName = "nom")]
  119. public string? Nom { get; set; }
  120. [XmlAttribute(AttributeName = "genre")]
  121. public string? Genre { get; set; }
  122. [XmlAttribute(AttributeName = "type")]
  123. public string? Type { get; set; }
  124. [XmlAttribute(AttributeName = "groupe")]
  125. public string? Groupe { get; set; }
  126. [XmlAttribute(AttributeName = "portée")]
  127. public int Portée { get; set; }
  128. [XmlAttribute(AttributeName = "modes")]
  129. public string? Modes { get; set; }
  130. [XmlAttribute(AttributeName = "dégâts")]
  131. public string? Dégâts { get; set; }
  132. [XmlAttribute(AttributeName = "type_dégâts")]
  133. public string? TypeDégâts { get; set; }
  134. [XmlAttribute(AttributeName = "pénétration")]
  135. public int Pénétration { get; set; }
  136. [XmlAttribute(AttributeName = "autonomie")]
  137. public int Autonomie { get; set; }
  138. [XmlAttribute(AttributeName = "rechargement")]
  139. public int Rechargement { get; set; }
  140. [XmlAttribute(AttributeName = "attributs")]
  141. public string? Attributs { get; set; }
  142. [XmlAttribute(AttributeName = "accessoires")]
  143. public string? Accessoires { get; set; }
  144. [XmlAttribute(AttributeName = "poids")]
  145. public int Poids { get; set; }
  146. [XmlAttribute(AttributeName = "bonus_bf")]
  147. public int BonusBf { get; set; }
  148. [XmlAttribute(AttributeName = "prix")]
  149. public int Prix { get; set; }
  150. [XmlAttribute(AttributeName = "disponibilité")]
  151. public string? Disponibilité { get; set; }
  152. [XmlAttribute(AttributeName = "description")]
  153. public string? Description { get; set; }
  154. [XmlIgnoreAttribute] public int ArmeId { get; set; }
  155. }
  156. [Serializable]
  157. [XmlRoot(ElementName = "armures")]
  158. public class Armure : BaseEntity
  159. {
  160. [XmlAttribute(AttributeName = "id")]
  161. public string Id { get; set; }
  162. [XmlAttribute(AttributeName = "nom")]
  163. public string? Nom { get; set; }
  164. [XmlAttribute(AttributeName = "type")]
  165. public string? Type { get; set; }
  166. [XmlAttribute(AttributeName = "pa_tête")]
  167. public int PaTête { get; set; }
  168. [XmlAttribute(AttributeName = "pa_bras")]
  169. public int PaBras { get; set; }
  170. [XmlAttribute(AttributeName = "pa_corps")]
  171. public int PaCorps { get; set; }
  172. [XmlAttribute(AttributeName = "pa_jambes")]
  173. public int PaJambes { get; set; }
  174. [XmlAttribute(AttributeName = "effet")]
  175. public string? Effet { get; set; }
  176. [XmlAttribute(AttributeName = "poids")]
  177. public int Poids { get; set; }
  178. [XmlAttribute(AttributeName = "prix")]
  179. public int Prix { get; set; }
  180. [XmlAttribute(AttributeName = "qualité")]
  181. public string? Qualité { get; set; }
  182. [XmlAttribute(AttributeName = "disponibilité")]
  183. public string? Disponibilité { get; set; }
  184. [XmlAttribute(AttributeName = "description")]
  185. public string? Description { get; set; }
  186. [XmlIgnoreAttribute] public int ArmureId { get; set; }
  187. }
  188. [Serializable]
  189. [XmlRoot(ElementName = "assermentations")]
  190. public class Assermentation : BaseEntity
  191. {
  192. [XmlAttribute(AttributeName = "id")]
  193. public string Id { get; set; }
  194. [XmlAttribute(AttributeName = "nom")]
  195. public string? Nom { get; set; }
  196. [XmlAttribute(AttributeName = "seuil_min")]
  197. public int SeuilMin { get; set; }
  198. [XmlAttribute(AttributeName = "seuil_max")]
  199. public int SeuilMax { get; set; }
  200. [XmlAttribute(AttributeName = "effet")]
  201. public string? Effet { get; set; }
  202. [XmlAttribute(AttributeName = "description")]
  203. public string? Description { get; set; }
  204. [XmlIgnoreAttribute] public int AssermentationId { get; set; }
  205. }
  206. [Serializable]
  207. [XmlRoot(ElementName = "attributs_armes")]
  208. public class Attribut : BaseEntity
  209. {
  210. [XmlAttribute(AttributeName = "id")]
  211. public string Id { get; set; }
  212. [XmlAttribute(AttributeName = "nom")]
  213. public string? Nom { get; set; }
  214. [XmlAttribute(AttributeName = "effet")]
  215. public string? Effet { get; set; }
  216. [XmlAttribute(AttributeName = "description")]
  217. public string? Description { get; set; }
  218. [XmlIgnoreAttribute] public int AttributId { get; set; }
  219. }
  220. [Serializable]
  221. [XmlRoot(ElementName = "carrières")]
  222. public class Carrière : BaseEntity
  223. {
  224. [XmlAttribute(AttributeName = "id")]
  225. public string Id { get; set; }
  226. [XmlAttribute(AttributeName = "nom")]
  227. public string? Nom { get; set; }
  228. [XmlAttribute(AttributeName = "effet")]
  229. public string? Effet { get; set; }
  230. [XmlAttribute(AttributeName = "types_mondes_autorisés")]
  231. public string? TypesMondesAutorisés { get; set; }
  232. [XmlAttribute(AttributeName = "description")]
  233. public string? Description { get; set; }
  234. [XmlIgnoreAttribute] public int CarrièreId { get; set; }
  235. }
  236. [Serializable]
  237. [XmlRoot(ElementName = "competences")]
  238. public class Competence : BaseEntity
  239. {
  240. [XmlAttribute(AttributeName = "id")]
  241. public string Id { get; set; }
  242. [XmlAttribute(AttributeName = "nom")]
  243. public string? Nom { get; set; }
  244. [XmlAttribute(AttributeName = "type")]
  245. public string? Type { get; set; }
  246. [XmlAttribute(AttributeName = "carac")]
  247. public string? Carac { get; set; }
  248. [XmlAttribute(AttributeName = "registre")]
  249. public string? Registre { get; set; }
  250. [XmlAttribute(AttributeName = "description")]
  251. public string? Description { get; set; }
  252. [XmlIgnoreAttribute] public int CompetenceId { get; set; }
  253. }
  254. [Serializable]
  255. [XmlRoot(ElementName = "coordonnées")]
  256. public class Coordonnée : BaseEntity
  257. {
  258. [XmlAttribute(AttributeName = "id")]
  259. public string Id { get; set; }
  260. [XmlAttribute(AttributeName = "nom")]
  261. public string? Nom { get; set; }
  262. [XmlAttribute(AttributeName = "sous_secteur")]
  263. public string? SousSecteur { get; set; }
  264. [XmlAttribute(AttributeName = "type")]
  265. public string? Type { get; set; }
  266. [XmlAttribute(AttributeName = "coord_x")]
  267. public int CoordX { get; set; }
  268. [XmlAttribute(AttributeName = "coord_y")]
  269. public int CoordY { get; set; }
  270. [XmlAttribute(AttributeName = "description")]
  271. public string? Description { get; set; }
  272. [XmlIgnoreAttribute] public int CoordonnéeId { get; set; }
  273. }
  274. [Serializable]
  275. [XmlRoot(ElementName = "cybernétiques")]
  276. public class Cybernétique : BaseEntity
  277. {
  278. [XmlAttribute(AttributeName = "id")]
  279. public string Id { get; set; }
  280. [XmlAttribute(AttributeName = "nom")]
  281. public string? Nom { get; set; }
  282. [XmlAttribute(AttributeName = "type")]
  283. public string? Type { get; set; }
  284. [XmlAttribute(AttributeName = "effet_qualité_médiocre")]
  285. public string? EffetQualitéMédiocre { get; set; }
  286. [XmlAttribute(AttributeName = "effet_qualité_moyenne")]
  287. public string? EffetQualitéMoyenne { get; set; }
  288. [XmlAttribute(AttributeName = "effet_qualité_bonne")]
  289. public string? EffetQualitéBonne { get; set; }
  290. [XmlAttribute(AttributeName = "effet_qualité_exceptionnelle")]
  291. public string? EffetQualitéExceptionnelle { get; set; }
  292. [XmlAttribute(AttributeName = "cout")]
  293. public int Cout { get; set; }
  294. [XmlAttribute(AttributeName = "disponibilité")]
  295. public string? Disponibilité { get; set; }
  296. [XmlAttribute(AttributeName = "description")]
  297. public string? Description { get; set; }
  298. [XmlIgnoreAttribute] public int CybernétiqueId { get; set; }
  299. }
  300. [Serializable]
  301. [XmlRoot(ElementName = "disciplines")]
  302. public class Discipline : BaseEntity
  303. {
  304. [XmlAttribute(AttributeName = "id")]
  305. public string Id { get; set; }
  306. [XmlAttribute(AttributeName = "nom")]
  307. public string? Nom { get; set; }
  308. [XmlAttribute(AttributeName = "description")]
  309. public string? Description { get; set; }
  310. [XmlIgnoreAttribute] public int DisciplineId { get; set; }
  311. }
  312. [Serializable]
  313. [XmlRoot(ElementName = "divination")]
  314. public class Divination : BaseEntity
  315. {
  316. [XmlAttribute(AttributeName = "id")]
  317. public string Id { get; set; }
  318. [XmlAttribute(AttributeName = "nom")]
  319. public string? Nom { get; set; }
  320. [XmlAttribute(AttributeName = "effet")]
  321. public string? Effet { get; set; }
  322. [XmlAttribute(AttributeName = "seuil_min")]
  323. public int SeuilMin { get; set; }
  324. [XmlAttribute(AttributeName = "seuil_max")]
  325. public int SeuilMax { get; set; }
  326. [XmlAttribute(AttributeName = "description")]
  327. public string? Description { get; set; }
  328. [XmlIgnoreAttribute] public int DivinationId { get; set; }
  329. }
  330. [Serializable]
  331. [XmlRoot(ElementName = "equipements")]
  332. public class Equipement : BaseEntity
  333. {
  334. [XmlAttribute(AttributeName = "id")]
  335. public string Id { get; set; }
  336. [XmlAttribute(AttributeName = "nom")]
  337. public string? Nom { get; set; }
  338. [XmlAttribute(AttributeName = "type")]
  339. public string? Type { get; set; }
  340. [XmlAttribute(AttributeName = "poids")]
  341. public double Poids { get; set; }
  342. [XmlAttribute(AttributeName = "prix")]
  343. public int Prix { get; set; }
  344. [XmlAttribute(AttributeName = "disponibilité")]
  345. public string? Disponibilité { get; set; }
  346. [XmlAttribute(AttributeName = "description")]
  347. public int Description { get; set; }
  348. [XmlIgnoreAttribute] public int EquipementId { get; set; }
  349. }
  350. [Serializable]
  351. [XmlRoot(ElementName = "implants")]
  352. public class Implant : BaseEntity
  353. {
  354. [XmlAttribute(AttributeName = "id")]
  355. public string Id { get; set; }
  356. [XmlAttribute(AttributeName = "nom")]
  357. public string? Nom { get; set; }
  358. [XmlAttribute(AttributeName = "effet")]
  359. public string? Effet { get; set; }
  360. [XmlAttribute(AttributeName = "description")]
  361. public string? Description { get; set; }
  362. [XmlIgnoreAttribute] public int ImplantId { get; set; }
  363. }
  364. [Serializable]
  365. [XmlRoot(ElementName = "mondes")]
  366. public class Monde : BaseEntity
  367. {
  368. [XmlAttribute(AttributeName = "id")]
  369. public string Id { get; set; }
  370. [XmlAttribute(AttributeName = "nom")]
  371. public string? Nom { get; set; }
  372. [XmlAttribute(AttributeName = "type")]
  373. public string? Type { get; set; }
  374. [XmlAttribute(AttributeName = "effet")]
  375. public string? Effet { get; set; }
  376. [XmlAttribute(AttributeName = "destin")]
  377. public string? Destin { get; set; }
  378. [XmlAttribute(AttributeName = "description")]
  379. public string? Description { get; set; }
  380. [XmlIgnoreAttribute] public int MondeId { get; set; }
  381. }
  382. [Serializable]
  383. [XmlRoot(ElementName = "mutation")]
  384. public class Mutation : BaseEntity
  385. {
  386. [XmlAttribute(AttributeName = "id")]
  387. public string Id { get; set; }
  388. [XmlAttribute(AttributeName = "nom")]
  389. public string? Nom { get; set; }
  390. [XmlAttribute(AttributeName = "type")]
  391. public string? Type { get; set; }
  392. [XmlAttribute(AttributeName = "effet")]
  393. public string? Effet { get; set; }
  394. [XmlAttribute(AttributeName = "seuil_min")]
  395. public int SeuilMin { get; set; }
  396. [XmlAttribute(AttributeName = "seuil_max")]
  397. public int SeuilMax { get; set; }
  398. [XmlAttribute(AttributeName = "description")]
  399. public string? Description { get; set; }
  400. [XmlIgnoreAttribute] public int MutationId { get; set; }
  401. }
  402. [Serializable]
  403. [XmlRoot(ElementName = "pouvoir")]
  404. public class Pouvoir : BaseEntity
  405. {
  406. [XmlAttribute(AttributeName = "id")]
  407. public string Id { get; set; }
  408. [XmlAttribute(AttributeName = "nom")]
  409. public string? Nom { get; set; }
  410. [XmlAttribute(AttributeName = "discipline")]
  411. public string? Discipline { get; set; }
  412. [XmlAttribute(AttributeName = "seuil")]
  413. public int Seuil { get; set; }
  414. [XmlAttribute(AttributeName = "action")]
  415. public string? Action { get; set; }
  416. [XmlAttribute(AttributeName = "opposé")]
  417. public bool Opposé { get; set; }
  418. [XmlAttribute(AttributeName = "portée")]
  419. public string? Portée { get; set; }
  420. [XmlAttribute(AttributeName = "prolongeable")]
  421. public bool Prolongeable { get; set; }
  422. [XmlAttribute(AttributeName = "description")]
  423. public string? Description { get; set; }
  424. [XmlIgnoreAttribute] public int PouvoirId { get; set; }
  425. }
  426. [Serializable]
  427. [XmlRoot(ElementName = "promotion")]
  428. public class Promote : BaseEntity
  429. {
  430. [XmlAttribute(AttributeName = "id")]
  431. public string Id { get; set; }
  432. [XmlAttribute(AttributeName = "nom")]
  433. public string? Nom { get; set; }
  434. [XmlAttribute(AttributeName = "promotion")]
  435. public int Promotion { get; set; }
  436. [XmlAttribute(AttributeName = "effet")]
  437. public string? Effet { get; set; }
  438. [XmlAttribute(AttributeName = "condition")]
  439. public string? Condition { get; set; }
  440. [XmlAttribute(AttributeName = "alternative")]
  441. public bool Alternative { get; set; }
  442. [XmlAttribute(AttributeName = "description")]
  443. public string? Description { get; set; }
  444. [XmlIgnoreAttribute] public int PromotionId { get; set; }
  445. }
  446. [Serializable]
  447. [XmlRoot(ElementName = "seuil")]
  448. public class Seuil : BaseEntity
  449. {
  450. [XmlAttribute(AttributeName = "id")]
  451. public string Id { get; set; }
  452. [XmlAttribute(AttributeName = "rang")]
  453. public int Rang { get; set; }
  454. [XmlAttribute(AttributeName = "valeur_min")]
  455. public int ValeurMin { get; set; }
  456. [XmlAttribute(AttributeName = "valeur_max")]
  457. public int ValeurMax { get; set; }
  458. [XmlIgnoreAttribute] public int SeuilId { get; set; }
  459. }
  460. [Serializable]
  461. [XmlRoot(ElementName = "sousmonde")]
  462. public class Sousmonde : BaseEntity
  463. {
  464. [XmlAttribute(AttributeName = "id")]
  465. public string Id { get; set; }
  466. [XmlAttribute(AttributeName = "nom")]
  467. public string? Nom { get; set; }
  468. [XmlAttribute(AttributeName = "type_monde")]
  469. public string? TypeMonde { get; set; }
  470. [XmlAttribute(AttributeName = "seuil_min")]
  471. public int SeuilMin { get; set; }
  472. [XmlAttribute(AttributeName = "seuil_max")]
  473. public int SeuilMax { get; set; }
  474. [XmlAttribute(AttributeName = "description")]
  475. public string? Description { get; set; }
  476. [XmlIgnoreAttribute] public int SousmondeId { get; set; }
  477. }
  478. [Serializable]
  479. [XmlRoot(ElementName = "talent")]
  480. public class Talent : BaseEntity
  481. {
  482. [XmlAttribute(AttributeName = "id")]
  483. public string Id { get; set; }
  484. [XmlAttribute(AttributeName = "nom")]
  485. public string? Nom { get; set; }
  486. [XmlAttribute(AttributeName = "multiple")]
  487. public bool Multiple { get; set; }
  488. [XmlAttribute(AttributeName = "condition")]
  489. public string? Condition { get; set; }
  490. [XmlAttribute(AttributeName = "effet")]
  491. public string? Effet { get; set; }
  492. [XmlAttribute(AttributeName = "description")]
  493. public string? Description { get; set; }
  494. [XmlIgnoreAttribute] public int TalentId { get; set; }
  495. }
  496. [Serializable]
  497. [XmlRoot(ElementName = "trait")]
  498. public class Trait : BaseEntity
  499. {
  500. [XmlAttribute(AttributeName = "id")]
  501. public string Id { get; set; }
  502. [XmlAttribute(AttributeName = "nom")]
  503. public string? Nom { get; set; }
  504. [XmlAttribute(AttributeName = "effet")]
  505. public string? Effet { get; set; }
  506. [XmlAttribute(AttributeName = "multiple")]
  507. public bool Multiple { get; set; }
  508. [XmlAttribute(AttributeName = "description")]
  509. public string? Description { get; set; }
  510. [XmlIgnoreAttribute] public int TraitId { get; set; }
  511. }
  512. [Serializable]
  513. [XmlRoot(ElementName = "trouble")]
  514. public class Trouble : BaseEntity
  515. {
  516. [XmlAttribute(AttributeName = "id")]
  517. public string Id { get; set; }
  518. [XmlAttribute(AttributeName = "nom")]
  519. public string? Nom { get; set; }
  520. [XmlAttribute(AttributeName = "effet")]
  521. public string? Effet { get; set; }
  522. [XmlAttribute(AttributeName = "description")]
  523. public string? Description { get; set; }
  524. [XmlIgnoreAttribute] public int TroubleId { get; set; }
  525. }
  526. [Serializable]
  527. [XmlRoot(ElementName = "type_monde")]
  528. public class TypeMonde : BaseEntity
  529. {
  530. [XmlAttribute(AttributeName = "id")]
  531. public string Id { get; set; }
  532. [XmlAttribute(AttributeName = "nom")]
  533. public string? Nom { get; set; }
  534. [XmlAttribute(AttributeName = "texte_section")]
  535. public string? TexteSection { get; set; }
  536. [XmlAttribute(AttributeName = "age")]
  537. public string? Age { get; set; }
  538. [XmlAttribute(AttributeName = "cheveux")]
  539. public string? Cheveux { get; set; }
  540. [XmlAttribute(AttributeName = "corpulence")]
  541. public string? Corpulence { get; set; }
  542. [XmlAttribute(AttributeName = "particularités_physiques")]
  543. public string? ParticularitésPhysiques { get; set; }
  544. [XmlAttribute(AttributeName = "peau")]
  545. public string? Peau { get; set; }
  546. [XmlAttribute(AttributeName = "yeux")]
  547. public string? Yeux { get; set; }
  548. [XmlAttribute(AttributeName = "description")]
  549. public string? Description { get; set; }
  550. [XmlIgnoreAttribute] public int TypeMondeId { get; set; }
  551. }
  552. [Serializable]
  553. [XmlRoot(ElementName = "type_nom")]
  554. public class TypeName : BaseEntity
  555. {
  556. [XmlAttribute(AttributeName = "id")]
  557. public string Id { get; set; }
  558. [XmlAttribute(AttributeName = "nom")]
  559. public string? Nom { get; set; }
  560. [XmlAttribute(AttributeName = "type_nom")]
  561. public string? TypeNom { get; set; }
  562. [XmlAttribute(AttributeName = "genre")]
  563. public string? Genre { get; set; }
  564. [XmlAttribute(AttributeName = "seuil_min")]
  565. public int SeuilMin { get; set; }
  566. [XmlAttribute(AttributeName = "seuil_max")]
  567. public int SeuilMax { get; set; }
  568. [XmlIgnoreAttribute]
  569. public int TypeNomId { get; set; }
  570. }
  571. [Serializable]
  572. [XmlRoot(ElementName = "root")]
  573. public class Root : BaseEntity
  574. {
  575. [XmlAttribute(AttributeName = "id")]
  576. public string Id { get; set; }
  577. [XmlArray(ElementName = "extensions")]
  578. [XmlArrayItem(ElementName = "extension")]
  579. public List<Extension> Extensions { get; set; }
  580. [XmlArray(ElementName = "accessoires_armes")]
  581. [XmlArrayItem(ElementName = "accessoire")]
  582. public List<Accessoire> AccessoiresArmes { get; set; }
  583. [XmlArray(ElementName = "améliorations")]
  584. [XmlArrayItem(ElementName = "amélioration")]
  585. public List<Amélioration> Améliorations { get; set; }
  586. [XmlArray(ElementName = "archétypes")]
  587. [XmlArrayItem(ElementName = "archétype")]
  588. public List<Archétype> Archétypes { get; set; }
  589. [XmlArray(ElementName = "armes")]
  590. [XmlArrayItem(ElementName = "arme")]
  591. public List<Arme> Armes { get; set; }
  592. [XmlArray(ElementName = "armures")]
  593. [XmlArrayItem(ElementName = "armure")]
  594. public List<Armure> Armures { get; set; }
  595. [XmlArray(ElementName = "assermentations")]
  596. [XmlArrayItem(ElementName = "assermentation")]
  597. public List<Assermentation> Assermentations { get; set; }
  598. [XmlArray(ElementName = "attributs_armes")]
  599. [XmlArrayItem(ElementName = "attribut")]
  600. public List<Attribut> AttributsArmes { get; set; }
  601. [XmlArray(ElementName = "carrières")]
  602. [XmlArrayItem(ElementName = "carrière")]
  603. public List<Carrière> Carrières { get; set; }
  604. [XmlArray(ElementName = "competences")]
  605. [XmlArrayItem(ElementName = "competence")]
  606. public List<Competence> Competences { get; set; }
  607. [XmlArray(ElementName = "coordonnées")]
  608. [XmlArrayItem(ElementName = "coordonnée")]
  609. public List<Coordonnée> Coordonnées { get; set; }
  610. [XmlArray(ElementName = "cybernétiques")]
  611. [XmlArrayItem(ElementName = "cybernétique")]
  612. public List<Cybernétique> Cybernétiques { get; set; }
  613. [XmlArray(ElementName = "disciplines")]
  614. [XmlArrayItem(ElementName = "discipline")]
  615. public List<Discipline> Disciplines { get; set; }
  616. [XmlArray(ElementName = "divinations")]
  617. [XmlArrayItem(ElementName = "divination")]
  618. public List<Divination> Divinations { get; set; }
  619. [XmlArray(ElementName = "equipements")]
  620. [XmlArrayItem(ElementName = "equipement")]
  621. public List<Equipement> Equipements { get; set; }
  622. [XmlArray(ElementName = "implants")]
  623. [XmlArrayItem(ElementName = "implant")]
  624. public List<Implant> Implants { get; set; }
  625. [XmlArray(ElementName = "mondes")]
  626. [XmlArrayItem(ElementName = "monde")]
  627. public List<Monde> Mondes { get; set; }
  628. [XmlArray(ElementName = "mutations")]
  629. [XmlArrayItem(ElementName = "mutation")]
  630. public List<Mutation> Mutations { get; set; }
  631. [XmlArray(ElementName = "pouvoirs")]
  632. [XmlArrayItem(ElementName = "pouvoir")]
  633. public List<Pouvoir> Pouvoirs { get; set; }
  634. [XmlArray(ElementName = "promotions")]
  635. [XmlArrayItem(ElementName = "promotion")]
  636. public List<Promote> Promotions { get; set; }
  637. [XmlArray(ElementName = "seuils_xp")]
  638. [XmlArrayItem(ElementName = "seuil")]
  639. public List<Seuil> SeuilsXp { get; set; }
  640. [XmlArray(ElementName = "sousmondes")]
  641. [XmlArrayItem(ElementName = "sousmonde")]
  642. public List<Sousmonde> Sousmondes { get; set; }
  643. [XmlArray(ElementName = "talents")]
  644. [XmlArrayItem(ElementName = "talent")]
  645. public List<Talent> Talents { get; set; }
  646. [XmlArray(ElementName = "traits")]
  647. [XmlArrayItem(ElementName = "trait")]
  648. public List<Trait> Traits { get; set; }
  649. [XmlArray(ElementName = "troubles")]
  650. [XmlArrayItem(ElementName = "trouble")]
  651. public List<Trouble> Troubles { get; set; }
  652. [XmlArray(ElementName = "type_mondes")]
  653. [XmlArrayItem(ElementName = "type_monde")]
  654. public List<TypeMonde> TypeMondes { get; set; }
  655. [XmlArray(ElementName = "types_nom")]
  656. [XmlArrayItem(ElementName = "type_nom")]
  657. public List<TypeName> TypesNom { get; set; }
  658. }
  659. }