generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.js
19 lines (16 loc) · 759 Bytes
/
setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import * as CONST from './scripts/constants.js';
import { registerSettings } from './scripts/settings.js';
import { ByMeasuredTemplateDocument } from './scripts/core classes/ByMeasuredTemplateDocument.js';
import { ByTokenDocument } from './scripts/core classes/ByTokenDocument.js';
import { PreviewTemplate } from './scripts/core classes/PreviewMeasuredTemplate.js';
Hooks.once('init', () => {
registerSettings();
ByMeasuredTemplateDocument._init();
ByTokenDocument._init();
window.Boneyard = window.Boneyard ?? {};
window.Boneyard.TemplateTools = {
collisionMethods: CONST.COLLISION_METHOD,
collisionShapes: CONST.TOKEN_COLLISION_SHAPE,
preview: PreviewTemplate.createPreview.bind(PreviewTemplate),
};
});