mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-11-01 16:05:42 +00:00
Ajout id dans les items
Ajout database
This commit is contained in:
parent
ae4357f834
commit
1c451bf795
3 changed files with 6 additions and 2 deletions
|
|
@ -128,7 +128,9 @@ namespace AideDeJeuLib.Monsters
|
||||||
var pack = new HtmlDocument();
|
var pack = new HtmlDocument();
|
||||||
pack.LoadHtml(html);
|
pack.LoadHtml(html);
|
||||||
var divBloc = pack.DocumentNode.SelectNodes("//div[contains(@class,'bloc')]").FirstOrDefault();
|
var divBloc = pack.DocumentNode.SelectNodes("//div[contains(@class,'bloc')]").FirstOrDefault();
|
||||||
return Monster.FromHtml(divBloc);
|
var monster = Monster.FromHtml(divBloc);
|
||||||
|
monster.Id = id;
|
||||||
|
return monster;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,9 @@ namespace AideDeJeuLib.Spells
|
||||||
var pack = new HtmlDocument();
|
var pack = new HtmlDocument();
|
||||||
pack.LoadHtml(html);
|
pack.LoadHtml(html);
|
||||||
var divSpell = pack.DocumentNode.SelectNodes("//div[contains(@class,'bloc')]").FirstOrDefault();
|
var divSpell = pack.DocumentNode.SelectNodes("//div[contains(@class,'bloc')]").FirstOrDefault();
|
||||||
return Spell.FromHtml(divSpell);
|
var spell = Spell.FromHtml(divSpell);
|
||||||
|
spell.Id = id;
|
||||||
|
return spell;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<IEnumerable<string>> GetSpellIds(string classe, string niveauMin = "Z", string niveauMax = "9")
|
public async Task<IEnumerable<string>> GetSpellIds(string classe, string niveauMin = "Z", string niveauMax = "9")
|
||||||
|
|
|
||||||
BIN
Data/database.db
Normal file
BIN
Data/database.db
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue