2021-02-05 01:38:40 +01:00
|
|
|
import { Misc } from "./misc.js";
|
2021-01-04 00:17:22 +01:00
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
export class RdDItem {
|
|
|
|
|
2021-02-05 01:38:40 +01:00
|
|
|
static isSoufflePontImpraticable(item) {
|
|
|
|
return item.type == 'souffle' && item.name.toLowerCase().includes(' des ponts');
|
2021-01-08 22:23:50 +01:00
|
|
|
}
|
|
|
|
|
2021-02-05 01:38:40 +01:00
|
|
|
static isCaseInnondee(item) {
|
|
|
|
return RdDItem.isCaseTMR(item) && item.data.specific == 'debordement';
|
2021-01-08 22:23:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-02-05 01:38:40 +01:00
|
|
|
static isCaseTMR(item) {
|
|
|
|
return item.type == 'casetmr';
|
|
|
|
}
|
2021-01-04 00:17:22 +01:00
|
|
|
}
|