Commandes pour les signes draconiques

This commit is contained in:
Vincent Vandemeulebrouck
2021-05-11 00:52:25 +02:00
parent ef08dbeb97
commit 5a452aa17c
11 changed files with 280 additions and 60 deletions

View File

@ -346,6 +346,12 @@ export class TMRUtility {
return Grammar.articleDetermine(tmr.type) + ' ' + tmr.label;
}
static listSelectedTMR(typesTMR) {
return Object.values(TMRType).map(value => Misc.upperFirst(value.name))
.sort()
.map(name => { return { name: name, selected: typesTMR.includes(name) } });
}
static isCaseHumide(tmr) {
return tmr.type == 'fleuve' || tmr.type == 'lac' || tmr.type == 'marais';
}