foundryvtt-beam-saber/module/templates.js
Peter Varaksin fee245cfcd Progress
2020-04-21 09:51:49 +03:00

26 lines
925 B
JavaScript

/**
* Define a set of template paths to pre-load
* Pre-loaded templates are compiled and cached for fast access when rendering
* @return {Promise}
*/
export const preloadHandlebarsTemplates = async function() {
// Define template paths to load
const templatePaths = [
// Actor Sheet Partials
"systems/blades-in-the-dark/templates/parts/attributes.html",
"systems/blades-in-the-dark/templates/parts/cutter-class.html",
"systems/blades-in-the-dark/templates/parts/hound-class.html",
"systems/blades-in-the-dark/templates/parts/leech-class.html",
"systems/blades-in-the-dark/templates/parts/lurk-class.html",
"systems/blades-in-the-dark/templates/parts/slide-class.html",
"systems/blades-in-the-dark/templates/parts/spider-class.html",
"systems/blades-in-the-dark/templates/parts/whisper-class.html"
];
// Load the template parts
return loadTemplates(templatePaths);
};