Root.cs 31 KB

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