foundry-factory-demo-gitlab/src/module/foundry-factory-demo-gitlab.ts
2022-02-14 20:22:17 +01:00

44 lines
1.3 KiB
TypeScript

/**
* This is your TypeScript entry file for Foundry VTT.
* Register custom settings, sheets, and constants using the Foundry API.
* Change this heading to be more descriptive to your module, or remove it.
* Author: [your name]
* Content License: [copyright and-or license] If using an existing system
* you may want to put a (link to a) license or copyright
* notice here (e.g. the OGL).
* Software License: [your license] Put your desired license here, which
* determines how others may use and modify your module.
*/
// Import TypeScript modules
import { registerSettings } from './settings';
import { preloadTemplates } from './preloadTemplates';
// Initialize module
Hooks.once('init', async () => {
console.log('foundry-factory-demo-gitlab | Initializing foundry-factory-demo-gitlab');
// Assign custom classes and constants here
// Register custom module settings
registerSettings();
// Preload Handlebars templates
await preloadTemplates();
// Register custom sheets (if any)
});
// Setup module
Hooks.once('setup', async () => {
// Do anything after initialization but before
// ready
});
// When ready
Hooks.once('ready', async () => {
// Do anything once the module is ready
});
// Add any additional hooks if necessary