25 lines
943 B
JavaScript
25 lines
943 B
JavaScript
|
|
export class SoSUtility {
|
|
|
|
/* -------------------------------------------- */
|
|
static async preloadHandlebarsTemplates() {
|
|
|
|
const templatePaths = [
|
|
'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',
|
|
'systems/foundryvtt-shadows-over-sol/templates/stat-name-list.html',
|
|
|
|
'systems/foundryvtt-shadows-over-sol/templates/item-sheet.html',
|
|
'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'
|
|
]
|
|
return loadTemplates(templatePaths);
|
|
}
|
|
|
|
static fillRange (start, end) {
|
|
return Array(end - start + 1).fill().map((item, index) => start + index);
|
|
}
|
|
} |