1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 07:26:09 +00:00

Un peu de formating

This commit is contained in:
Yan Maniez 2018-06-04 22:19:25 +02:00
parent 6fe3681a32
commit 2ba11fc99f
6 changed files with 8254 additions and 321 deletions

View file

@ -3,6 +3,8 @@ using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Serialization;
namespace AideDeJeuLib.Spells
{
@ -32,6 +34,9 @@ namespace AideDeJeuLib.Spells
{
if(DescriptionHtml != null)
{
//XmlDocument xdoc = new XmlDocument();
//xdoc.LoadXml(DescriptionHtml);
//return xdoc.DocumentElement;
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(DescriptionHtml);
return doc.DocumentNode;

View file

@ -67,20 +67,25 @@ namespace AideDeJeuCmd
*/
var spellsVF = LoadJSon<IEnumerable<Spell>>(dataDir + "spells_vf_full.json");
var spellsVO = LoadJSon<IEnumerable<Spell>>(dataDir + "spells_vo_full.json");
var spellsHD = LoadJSon<IEnumerable<Spell>>(dataDir + "spells_hd_full.json");
var monstersVF = LoadJSon<IEnumerable<Monster>>(dataDir + "monsters_vf_full.json");
var monstersVO = LoadJSon<IEnumerable<Monster>>(dataDir + "monsters_vo_full.json");
spellsVF.ForEach(sp => sp.Html = null);
spellsVO.ForEach(sp => sp.Html = null);
spellsVF.ForEach(sp => sp.DescriptionDiv = sp.DescriptionDiv);
spellsVO.ForEach(sp => sp.Html = null);
monstersVF.ForEach(it => it.Html = null);
monstersVO.ForEach(it => it.Html = null);
SaveJSon<IEnumerable<Spell>>(dataDir + "spells_vf.json", spellsVF);
SaveJSon<IEnumerable<Spell>>(dataDir + "spells_vo.json", spellsVO);
SaveJSon<IEnumerable<Spell>>(dataDir + "spells_hd.json", spellsHD);
SaveJSon<IEnumerable<Monster>>(dataDir + "monsters_vf.json", monstersVF);
SaveJSon<IEnumerable<Monster>>(dataDir + "monsters_vo.json", monstersVO);
return;
/*
var spellLists = new Dictionary<string, IEnumerable<string>>()
{
{ "Barde", await LoadList(dataDir + "spell_barde.txt") },
@ -199,6 +204,7 @@ namespace AideDeJeuCmd
SaveJSon<IEnumerable<Spell>>(dataDir + "spells_hd.json", spellsHD);
Console.WriteLine("Hello World!");
*/
}
public static string Capitalize(string text)

File diff suppressed because one or more lines are too long

1
Data/spells_hd_full.json Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long