foundryvtt-shadows-over-sol/module/sos-utility.js

25 lines
943 B
JavaScript
Raw Normal View History

2021-01-17 22:09:01 +01:00
export class SoSUtility {
2021-01-18 16:11:27 +01:00
/* -------------------------------------------- */
2021-01-17 22:09:01 +01:00
static async preloadHandlebarsTemplates() {
2021-01-18 17:46:39 +01:00
2021-01-17 22:09:01 +01:00
const templatePaths = [
2021-01-18 17:46:39 +01:00
'systems/foundryvtt-shadows-over-sol/templates/actor-sheet.html',
'systems/foundryvtt-shadows-over-sol/templates/editor-notes-gm.html',
'systems/foundryvtt-shadows-over-sol/templates/stat-option-list.html',
2021-01-21 17:16:01 +01:00
'systems/foundryvtt-shadows-over-sol/templates/stat-name-list.html',
2021-01-19 22:54:53 +01:00
'systems/foundryvtt-shadows-over-sol/templates/item-sheet.html',
2021-01-21 17:16:01 +01:00
'systems/foundryvtt-shadows-over-sol/templates/item-geneline-sheet.html',
'systems/foundryvtt-shadows-over-sol/templates/item-subculture-sheet.html',
'systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html'
2021-01-17 22:09:01 +01:00
]
2021-01-21 17:16:01 +01:00
return loadTemplates(templatePaths);
}
static fillRange (start, end) {
return Array(end - start + 1).fill().map((item, index) => start + index);
2021-01-17 22:09:01 +01:00
}
}